Java Globus API: Class GateKeeperServer
org.globus.gatekeeper
Class GateKeeperServer
java.lang.Object
|
+--org.globus.net.BaseServer
|
+--org.globus.gatekeeper.GateKeeperServer
All Implemented Interfaces: java.lang.Runnable
public class GateKeeperServer extends BaseServer
Globus GateKeeper.
Field Summary
protected static int
PORT
Constructor Summary
GateKeeperServer ()
Initializes the GateKeeperServer with default credentials
and starts to listen to client connections
GateKeeperServer (GlobusProxy proxy,
int port)
initializes the GateKeeperServer with the provided credentials
and starts to listen to client connections on the port passed as a
parameter
GateKeeperServer (int port)
initializes the GateKeeperServer with default credentials
and starts to listen to client connections on the port passed as a
parameter
Methods inherited from class org.globus.net.BaseServer
getCredentials , getHostname , getPort , getProtocol , getURL , initialize , registerDefaultDeactivator , run , setAuthorization , shutdown , start , unregisterDefaultDeactivator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
PORT
protected static final int PORT
GateKeeperServer
public GateKeeperServer ()
throws GlobusProxyException ,
java.io.IOException
Initializes the GateKeeperServer with default credentials
and starts to listen to client connections
Throws: GlobusProxyException - is thrown when a valid proxy cannot be
used by the serverjava.io.IOException - is thrown when the port cannot be opened
GateKeeperServer
public GateKeeperServer (int port)
throws GlobusProxyException ,
java.io.IOException
initializes the GateKeeperServer with default credentials
and starts to listen to client connections on the port passed as a
parameter
Parameters: port - the port number used by this serverThrows: GlobusProxyException - is thrown when a valid proxy cannot be
used by the serverjava.io.IOException - is thrown when the port cannot be opened
GateKeeperServer
public GateKeeperServer (GlobusProxy proxy,
int port)
throws GlobusProxyException ,
java.io.IOException
initializes the GateKeeperServer with the provided credentials
and starts to listen to client connections on the port passed as a
parameter
Parameters: proxy - the credentials used by this server, if null then default
credentials are used.port - the port number used by this server
setLogFile
public void setLogFile (java.lang.String file)
setGridMap
public void setGridMap (GridMap gridMap)
getGridMap
public GridMap getGridMap ()
handleConnection
protected void handleConnection (java.net.Socket socket)
Handles individual client connections by starting a different thread.
Overrides: handleConnection in class BaseServer
Parameters: socket - is connected to a client ready to send request to the
gatekeeper.
addListener
public void addListener (GateKeeperListener listener)
Add a new listener for this Gatekeeper.
Parameters: listener -
removeListener
public void removeListener (GateKeeperListener listener)
Remove a listener from this Gatekeeper.
Parameters: listener -
getContact
public java.lang.String getContact ()
throws java.net.UnknownHostException
registerServices
public void registerServices (java.util.Properties servicesInfo)
throws java.lang.Exception
getService
public Service getService (java.lang.String serviceName)
throws GateKeeperException
registerService
public void registerService (java.lang.String serviceName,
java.lang.String className,
java.lang.String[] args)
throws java.lang.ClassNotFoundException
registerService
public void registerService (java.lang.String serviceName,
java.lang.Class clazz,
java.lang.String[] args)
unregisterService
public boolean unregisterService (java.lang.String serviceName)