Java Globus API: Class GateKeeperServer
org.globus.gatekeeper
Class GateKeeperServer
java.lang.Object
|
+--org.globus.net.BaseServer
|
+--org.globus.gatekeeper.GateKeeperServer
All Implemented Interfaces: 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 (GSSCredential cred,
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 , setGssMode , shutdown , start , unregisterDefaultDeactivator , wrapSocket
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 IOException
Initializes the GateKeeperServer with default credentials
and starts to listen to client connections
Throws: IOException - is thrown when the port cannot be opened
GateKeeperServer
public GateKeeperServer (int port)
throws 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: IOException - is thrown when the port cannot be opened
GateKeeperServer
public GateKeeperServer (GSSCredential cred,
int port)
throws 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 (String file)
setGridMap
public void setGridMap (GridMap gridMap)
getGridMap
public GridMap getGridMap ()
handleConnection
protected void handleConnection (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 String getContact ()
throws UnknownHostException
registerServices
public void registerServices (Properties servicesInfo)
throws Exception
getService
public Service getService (String serviceName)
throws GateKeeperException
registerService
public void registerService (String serviceName,
String className,
String [] args)
throws ClassNotFoundException
registerService
public void registerService (String serviceName,
Class clazz,
String [] args)
unregisterService
public boolean unregisterService (String serviceName)