|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegisterInterface
Interface exported by the ServiceRegister. The service register allows TestNodes to register the products it supports along with the OS it is running on. The coordinator can then query this register to find TestNodes which match given OS/Product criteria.
Method Summary | |
---|---|
void |
deregisterService(java.lang.String osId,
TestNodeInterface testNodeReference)
Removes a TestNode from the service register. |
void |
disableProductSupport(short serviceId,
java.lang.String productId)
Disable a given testnodes support for a given product. |
void |
enableProductSupport(short serviceId,
java.lang.String productId)
Enable a given testnodes support for a given product. |
TestNodeInterface[] |
getRegister()
Get an array of all TestNode's registered |
TestNodeInterface |
lookupService(short serviceId)
Return the TestNodeInterface for the TestNode that is registered with the given unique id |
TestNodeInterface[] |
lookupService(java.lang.String osId,
java.lang.String product)
Search the service register for TestNodes which are running on the given OS and supporting the product given. |
short |
registerService(java.lang.String osId,
java.lang.String[] productList,
TestNodeInterface testNodeReference)
Adds a TestNode into the service register. |
void |
reregisterService(short serviceId,
java.lang.String[] productList)
Updates a TestNode in the service register. |
Method Detail |
---|
short registerService(java.lang.String osId, java.lang.String[] productList, TestNodeInterface testNodeReference) throws java.rmi.RemoteException
osId
- The string id. for the OS the TestNode is running on.productList
- An array of product id.'s that the TestNode supports.testNodeReference
- The object reference of the TestNode.
java.rmi.RemoteException
void reregisterService(short serviceId, java.lang.String[] productList) throws java.rmi.RemoteException, ServiceNotFound
productList
- An array of product id.'s that the TestNode supports.
java.rmi.RemoteException
ServiceNotFound
TestNodeInterface[] lookupService(java.lang.String osId, java.lang.String product) throws java.rmi.RemoteException, ServiceNotFound
osID
- The string id. for the OS the TestNode should be running on.product
- The string id. for the product the TestNode should support.
ServiceNotFound
- Thrown if a TestNode
cannot be found which supports the given OS/Product combination.
java.rmi.RemoteException
TestNodeInterface lookupService(short serviceId) throws java.rmi.RemoteException, ServiceNotFound
serviceId
- The unique service identifier
java.rmi.RemoteException
ServiceNotFound
TestNodeInterface[] getRegister() throws java.rmi.RemoteException
java.rmi.RemoteException
void deregisterService(java.lang.String osId, TestNodeInterface testNodeReference) throws java.rmi.RemoteException, ServiceNotFound
testNodeReference
- The object reference of the TestNode to remove.
ServiceNotFound
- Thrown if the object
reference isn't one of a known TestNode.
java.rmi.RemoteException
void disableProductSupport(short serviceId, java.lang.String productId) throws java.rmi.RemoteException, ServiceNotFound
serviceId
- The service id. of the testnode who's product support is to be altered.productId
- The name of the product to disable support of.
java.rmi.RemoteException
ServiceNotFound
void enableProductSupport(short serviceId, java.lang.String productId) throws java.rmi.RemoteException, ServiceNotFound
serviceId
- The service id. of the testnode who's product support is to be altered.productId
- The name of the product to disable support of.
java.rmi.RemoteException
ServiceNotFound
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |