Java Globus API: Class RemoteGassServer
org.globus.io.gass.server
Class RemoteGassServer
java.lang.Object
|
+--org.globus.io.gass.server.RemoteGassServer
- public class RemoteGassServer
- extends java.lang.Object
This class allows for starting gass server remotely. The gass
server is started via the globus gatekeeper.
|
Method Summary |
int |
getOptions()
Returns current options of the server. |
java.lang.String |
getURL()
Returns url of this server. |
static void |
main(java.lang.String[] args)
|
void |
setOptions(int options)
Sets the options of the gass server such
as enabling client shutdown, etc. |
boolean |
shutdown()
Shutdowns remotely running gass server. |
void |
start(java.lang.String rmc)
Starts the gass server on the remote machine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_BUFFER_ENABLE
public static final int LINE_BUFFER_ENABLE
TILDE_EXPAND_ENABLE
public static final int TILDE_EXPAND_ENABLE
USER_EXPAND_ENABLE
public static final int USER_EXPAND_ENABLE
RemoteGassServer
public RemoteGassServer()
throws GlobusProxyException
- Starts Gass Server with default user credentials.
Port of the server will be dynamically assigned.
RemoteGassServer
public RemoteGassServer(boolean secure,
int port)
throws GlobusProxyException
- Starts Gass Server on given port and mode. Default
credentials will be used to start the server.
- Parameters:
secure - if true starts server in secure mode, otherwise unsecure.port - port of the server, if 0 it will be dynamically assigned.
RemoteGassServer
public RemoteGassServer(GlobusProxy proxy,
boolean secure,
int port)
- Starts Gass Server on given port and mode. The supplied
credentials will be used to start the server.
- Parameters:
proxy - credentials to use to start the server.secure - if true starts server in secure mode, otherwise unsecure.port - port of the server, if 0 it will be dynamically assigned.
getURL
public java.lang.String getURL()
- Returns url of this server.
- Returns:
- url of this server
setOptions
public void setOptions(int options)
- Sets the options of the gass server such
as enabling client shutdown, etc.
- Parameters:
options - server options
getOptions
public int getOptions()
- Returns current options of the server.
- Returns:
- options of the server. O if not
none set.
start
public void start(java.lang.String rmc)
throws GassException
- Starts the gass server on the remote machine.
- Parameters:
rmc - resource manager contact of the remote machine.- Throws:
GassException - if any error occurs during
remote startup.
shutdown
public boolean shutdown()
- Shutdowns remotely running gass server.
- Returns:
- true if server was successfully killed, false
otherwise.
main
public static void main(java.lang.String[] args)