org.gridbus.broker.farming.globus
Class GlobusGassServer

java.lang.Object
  |
  +--org.gridbus.broker.farming.globus.GlobusGassServer

public final class GlobusGassServer
extends java.lang.Object

This class has utility methods for working with GASS Servers.

Author:
Jia Yu (jiayu@cs.mu.oz.au)

Method Summary
static GlobusGassServer getInstance()
          Returns the instance of the Gass server.
 org.ietf.jgss.GSSCredential getProxy()
          Returns the GSSCredential proxy
 java.lang.String getStderrLB()
          Returns the path for the std err on the GASS server.
 java.lang.String getStderrURL()
          Returns the URL for the std err on the GASS server.
 java.lang.String getStdoutLB()
          Returns the path for the std out on the GASS server.
 java.lang.String getStdoutURL()
          Returns the URL for the std out on the GASS server.
 java.lang.String getURL()
          Returns the GASS server URL
 boolean isStarted()
           
 void registerGassErrorStream(org.globus.io.gass.server.JobOutputStream outStream)
          Registers a GASS server error stream
 void registerGassOutputStream(org.globus.io.gass.server.JobOutputStream outStream)
          Registers a GASS server output stream
 void setProxy(org.ietf.jgss.GSSCredential credential)
          Sets the GSSCredential proxy
 void shutdown()
          Shuts down a GASS server
 void start()
          Registers and activates a GASS server This happens only the first time the method is called.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GlobusGassServer getInstance()
Returns the instance of the Gass server.

Returns:

isStarted

public boolean isStarted()
Returns:
true if the Gass Server is started

start

public void start()
Registers and activates a GASS server This happens only the first time the method is called.


getURL

public java.lang.String getURL()
Returns the GASS server URL

Returns:
string

getStdoutURL

public java.lang.String getStdoutURL()
Returns the URL for the std out on the GASS server.

Returns:
string

getStderrURL

public java.lang.String getStderrURL()
Returns the URL for the std err on the GASS server.

Returns:
string

getStdoutLB

public java.lang.String getStdoutLB()
Returns the path for the std out on the GASS server.

Returns:
string

getStderrLB

public java.lang.String getStderrLB()
Returns the path for the std err on the GASS server.

Returns:
string

shutdown

public void shutdown()
Shuts down a GASS server


registerGassOutputStream

public void registerGassOutputStream(org.globus.io.gass.server.JobOutputStream outStream)
Registers a GASS server output stream

Parameters:
outStream -

registerGassErrorStream

public void registerGassErrorStream(org.globus.io.gass.server.JobOutputStream outStream)
Registers a GASS server error stream

Parameters:
outStream -

getProxy

public org.ietf.jgss.GSSCredential getProxy()
Returns the GSSCredential proxy

Returns:
proxy

setProxy

public void setProxy(org.ietf.jgss.GSSCredential credential)
Sets the GSSCredential proxy

Parameters:
credential -