|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.server.ServerUtil
public final class ServerUtil
A utility class for working with RemoteServer instances.
Method Summary | |
---|---|
static RemoteServer |
getServer(String serverHostName,
String serverNamePrefix)
Retrieves a RemoteServer from a registry running on the given host, using the given prefix as a criteria. |
static RemoteServer |
getServer(String serverHostName,
String serverNamePrefix,
int port)
Retrieves a RemoteServer from a registry running on the given host, using the given prefix as a criteria. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RemoteServer getServer(String serverHostName, String serverNamePrefix) throws RemoteException, NotBoundException
serverHostName
- the name of the hostserverNamePrefix
- the server name prefix, an empty string results in all servers being returned
RemoteException
- in case of a remote exception
NotBoundException
- in case no such server is foundpublic static RemoteServer getServer(String serverHostName, String serverNamePrefix, int port) throws RemoteException, NotBoundException
serverHostName
- the name of the hostserverNamePrefix
- the server name prefix, an empty string results in all servers being returnedport
- the required server port, -1 for any port
RemoteException
- in case of a remote exception
NotBoundException
- in case no such server is found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |