Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
compatibilityMode
private org.ietf.jgss.GSSCredential
cred
private GassServerListener
gassJobListener
private GramJob
job
static int
LINE_BUFFER_ENABLE
private static org.apache.commons.logging.Log
logger
private int
options
private int
port
private boolean
secure
private OutputListener
stderrListener
private OutputListener
stdoutListener
static int
TILDE_EXPAND_ENABLE
private java.lang.String
url
static int
USER_EXPAND_ENABLE
-
Constructor Summary
Constructors Constructor Description RemoteGassServer()
Starts Gass Server with default user credentials.RemoteGassServer(boolean secure, int port)
Starts Gass Server on given port and mode.RemoteGassServer(org.ietf.jgss.GSSCredential cred, boolean secure, int port)
Starts Gass Server on given port and mode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOptions()
Returns current options of the server.private java.lang.String
getRSL(java.lang.String gassURL)
java.lang.String
getURL()
Returns url of this server.static void
main(java.lang.String[] args)
private void
reset()
void
setCompatibilityMode(boolean compatibility)
Sets the compatibility mode to work with the old globus 1.1.x installations.void
setOptions(int options)
Sets the options of the gass server such as enabling client shutdown, etc.private void
setRSLArguments(java.lang.StringBuffer buf)
boolean
shutdown()
Shutdowns remotely running gass server.private void
sleep(int msec)
void
start(java.lang.String rmc)
Starts the gass server on the remote machine.
-
-
-
Field Detail
-
logger
private static org.apache.commons.logging.Log logger
-
LINE_BUFFER_ENABLE
public static final int LINE_BUFFER_ENABLE
- See Also:
- Constant Field Values
-
TILDE_EXPAND_ENABLE
public static final int TILDE_EXPAND_ENABLE
- See Also:
- Constant Field Values
-
USER_EXPAND_ENABLE
public static final int USER_EXPAND_ENABLE
- See Also:
- Constant Field Values
-
port
private int port
-
options
private int options
-
secure
private boolean secure
-
cred
private org.ietf.jgss.GSSCredential cred
-
url
private java.lang.String url
-
job
private GramJob job
-
compatibilityMode
private boolean compatibilityMode
-
stderrListener
private OutputListener stderrListener
-
stdoutListener
private OutputListener stdoutListener
-
gassJobListener
private GassServerListener gassJobListener
-
-
Constructor Detail
-
RemoteGassServer
public RemoteGassServer()
Starts Gass Server with default user credentials. Port of the server will be dynamically assigned.
-
RemoteGassServer
public RemoteGassServer(boolean secure, int port)
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(org.ietf.jgss.GSSCredential cred, boolean secure, int port)
Starts Gass Server on given port and mode. The supplied credentials will be used to start the server.- Parameters:
cred
- 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.
-
-
Method Detail
-
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.
-
setCompatibilityMode
public void setCompatibilityMode(boolean compatibility)
Sets the compatibility mode to work with the old globus 1.1.x installations.- Parameters:
compatibility
- set to true if working with the old globus 1.1.x installation.
-
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.
-
reset
private void reset()
-
getRSL
private java.lang.String getRSL(java.lang.String gassURL)
-
setRSLArguments
private void setRSLArguments(java.lang.StringBuffer buf)
-
sleep
private void sleep(int msec)
-
main
public static void main(java.lang.String[] args)
-
-