|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jboss.dtf.testframework.serviceregister.ServiceRegister
public class ServiceRegister
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_REGISTER_NAME_SERVICE_ENTRY
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServiceRegister()
|
|
| 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 |
static void |
initialiseRegistry()
|
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. |
static void |
main(java.lang.String[] args)
|
short |
registerService(java.lang.String osId,
java.lang.String[] productList,
TestNodeInterface testNodeReference)
Adds a TestNode into the service register. |
protected boolean |
removeService(short serviceId)
|
void |
reregisterService(short serviceId,
java.lang.String[] productList)
Updates a TestNode in the service register. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SERVICE_REGISTER_NAME_SERVICE_ENTRY
| Constructor Detail |
|---|
public ServiceRegister()
throws java.rmi.RemoteException,
java.net.UnknownHostException,
java.net.SocketException
java.rmi.RemoteException
java.net.UnknownHostException
java.net.SocketException| Method Detail |
|---|
public void disableProductSupport(short serviceId,
java.lang.String productId)
throws java.rmi.RemoteException,
ServiceNotFound
disableProductSupport in interface ServiceRegisterInterfaceserviceId - 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
public void enableProductSupport(short serviceId,
java.lang.String productId)
throws java.rmi.RemoteException,
ServiceNotFound
enableProductSupport in interface ServiceRegisterInterfaceserviceId - 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
public short registerService(java.lang.String osId,
java.lang.String[] productList,
TestNodeInterface testNodeReference)
throws java.rmi.RemoteException
ServiceRegisterInterface
registerService in interface ServiceRegisterInterfaceosId - 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
public void reregisterService(short serviceId,
java.lang.String[] productList)
throws java.rmi.RemoteException,
ServiceNotFound
reregisterService in interface ServiceRegisterInterfaceproductList - An array of product id.'s that the TestNode supports.
java.rmi.RemoteException
ServiceNotFound
public TestNodeInterface lookupService(short serviceId)
throws java.rmi.RemoteException,
ServiceNotFound
ServiceRegisterInterface
lookupService in interface ServiceRegisterInterfaceserviceId - The unique service identifier
java.rmi.RemoteException
ServiceNotFoundprotected boolean removeService(short serviceId)
public TestNodeInterface[] getRegister()
throws java.rmi.RemoteException
ServiceRegisterInterface
getRegister in interface ServiceRegisterInterfacejava.rmi.RemoteException
public TestNodeInterface[] lookupService(java.lang.String osId,
java.lang.String product)
throws java.rmi.RemoteException,
ServiceNotFound
ServiceRegisterInterface
lookupService in interface ServiceRegisterInterfaceproduct - 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
public void deregisterService(java.lang.String osId,
TestNodeInterface testNodeReference)
throws java.rmi.RemoteException,
ServiceNotFound
ServiceRegisterInterface
deregisterService in interface ServiceRegisterInterfacetestNodeReference - The object reference of the TestNode to remove.
ServiceNotFound - Thrown if the object
reference isn't one of a known TestNode.
java.rmi.RemoteExceptionpublic static void initialiseRegistry()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||