org.gridbus.broker.farming.globus
Class GassServerContainer

java.lang.Object
  extended by org.gridbus.broker.farming.globus.GassServerContainer

public final class GassServerContainer
extends java.lang.Object

This class has utility methods for working with GASS Servers. It implements the Singleton pattern, since we need only one GassServer on the broker side to handle file movement requests etc.

Author:
Krishna Nadiminti, kna@cs.mu.oz.au, Hussein Gibbins, hag@cs.mu.oz.au

Method Summary
static GassServerContainer getInstance(java.lang.String brokerSpecificKey)
          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()
           
static void registerComputeServer(java.lang.String brokerID, java.lang.String cskey)
           
 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
static void shutdown(java.lang.String brokerSpecificKey)
           
 void start()
          Registers and activates a GASS server This happens only the first time the method is called.
static void unRegisterComputeServer(java.lang.String brokerID, java.lang.String cskey)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GassServerContainer getInstance(java.lang.String brokerSpecificKey)
Returns the instance of the Gass server.

Parameters:
brokerSpecificKey -
Returns:

registerComputeServer

public static void registerComputeServer(java.lang.String brokerID,
                                         java.lang.String cskey)
Parameters:
brokerID -
cskey -

unRegisterComputeServer

public static void unRegisterComputeServer(java.lang.String brokerID,
                                           java.lang.String cskey)
Parameters:
brokerID -
cskey -

shutdown

public static void shutdown(java.lang.String brokerSpecificKey)
Parameters:
brokerSpecificKey -

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

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 -