public class RemoteGassServer
extends java.lang.Object
Modifier and Type | Field and 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 and 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.
|
Modifier and Type | Method and 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.
|
private static org.apache.commons.logging.Log logger
public static final int LINE_BUFFER_ENABLE
public static final int TILDE_EXPAND_ENABLE
public static final int USER_EXPAND_ENABLE
private int port
private int options
private boolean secure
private org.ietf.jgss.GSSCredential cred
private java.lang.String url
private GramJob job
private boolean compatibilityMode
private OutputListener stderrListener
private OutputListener stdoutListener
private GassServerListener gassJobListener
public RemoteGassServer()
public RemoteGassServer(boolean secure, int port)
secure
- if true starts server in secure mode, otherwise unsecure.port
- port of the server, if 0 it will be dynamically assigned.public RemoteGassServer(org.ietf.jgss.GSSCredential cred, boolean secure, int port)
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.public java.lang.String getURL()
public void setOptions(int options)
options
- server optionspublic int getOptions()
public void setCompatibilityMode(boolean compatibility)
compatibility
- set to true if working with
the old globus 1.1.x installation.public void start(java.lang.String rmc) throws GassException
rmc
- resource manager contact of the remote machine.GassException
- if any error occurs during
remote startup.public boolean shutdown()
private void reset()
private java.lang.String getRSL(java.lang.String gassURL)
private void setRSLArguments(java.lang.StringBuffer buf)
private void sleep(int msec)
public static void main(java.lang.String[] args)