|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.net.BaseServer
org.globus.gatekeeper.GateKeeperServer
Globus GateKeeper.
Field Summary | |
protected static int |
PORT
|
Fields inherited from class org.globus.net.BaseServer |
_server, accept, authorization, credentials, deactivator, gssMode, SO_TIMEOUT, timeout, url |
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 |
Method Summary | |
void |
addListener(GateKeeperListener listener)
Add a new listener for this Gatekeeper. |
String |
getContact()
|
GridMap |
getGridMap()
|
Service |
getService(String serviceName)
|
protected void |
handleConnection(Socket socket)
Handles individual client connections by starting a different thread. |
void |
registerService(String serviceName,
Class clazz,
String[] args)
|
void |
registerService(String serviceName,
String className,
String[] args)
|
void |
registerServices(Properties servicesInfo)
|
void |
removeListener(GateKeeperListener listener)
Remove a listener from this Gatekeeper. |
void |
setGridMap(GridMap gridMap)
|
void |
setLogFile(String file)
|
boolean |
unregisterService(String serviceName)
|
Methods inherited from class org.globus.net.BaseServer |
getCredentials, getHost, getHostname, getPort, getProtocol, getTimeout, getURL, initialize, registerDefaultDeactivator, run, setAuthorization, setGssMode, setTimeout, shutdown, start, unregisterDefaultDeactivator, wrapSocket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int PORT
Constructor Detail |
public GateKeeperServer() throws IOException
IOException
- is thrown when the port cannot be openedpublic GateKeeperServer(int port) throws IOException
port
- the port number used by this server
IOException
- is thrown when the port cannot be openedpublic GateKeeperServer(GSSCredential cred, int port) throws IOException
cred
- the credentials used by this server, if null then default
credentials are used.port
- the port number used by this serverMethod Detail |
public void setLogFile(String file)
public void setGridMap(GridMap gridMap)
public GridMap getGridMap()
protected void handleConnection(Socket socket)
handleConnection
in class BaseServer
socket
- is connected to a client ready to send request to the
gatekeeper.public void addListener(GateKeeperListener listener)
listener
- public void removeListener(GateKeeperListener listener)
listener
- public String getContact() throws UnknownHostException
UnknownHostException
public void registerServices(Properties servicesInfo) throws Exception
Exception
public Service getService(String serviceName) throws GateKeeperException
GateKeeperException
public void registerService(String serviceName, String className, String[] args) throws ClassNotFoundException
ClassNotFoundException
public void registerService(String serviceName, Class clazz, String[] args)
public boolean unregisterService(String serviceName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |