org.globus.cog.gridshell.connectionmanager
Class ConnectionManagerImpl

java.lang.Object
  extended byorg.globus.cog.gridshell.connectionmanager.ConnectionManagerImpl
All Implemented Interfaces:
ConnectionManager

public class ConnectionManagerImpl
extends Object
implements ConnectionManager


Constructor Summary
ConnectionManagerImpl()
           
 
Method Summary
 Collection getConnections()
           
 StartTask getCurrentConnection()
          Gets the current connection
 StartTask getDefault()
           
 StartTask getDefaultConnection()
          Returns a default connection
 boolean isCurrentDefaultConnection()
          Determines if the default connection is current
 StartTask pop()
          Removes and returns the last created connection
 void push(StartTask connection)
          Adds a connection to the top of the stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManagerImpl

public ConnectionManagerImpl()
Method Detail

getDefaultConnection

public StartTask getDefaultConnection()
Description copied from interface: ConnectionManager
Returns a default connection

Specified by:
getDefaultConnection in interface ConnectionManager
Returns:

getDefault

public StartTask getDefault()

push

public void push(StartTask connection)
Description copied from interface: ConnectionManager
Adds a connection to the top of the stack

Specified by:
push in interface ConnectionManager
Parameters:
connection -

pop

public StartTask pop()
Description copied from interface: ConnectionManager
Removes and returns the last created connection

Specified by:
pop in interface ConnectionManager
Returns:

getCurrentConnection

public StartTask getCurrentConnection()
Description copied from interface: ConnectionManager
Gets the current connection

Specified by:
getCurrentConnection in interface ConnectionManager
Returns:

isCurrentDefaultConnection

public boolean isCurrentDefaultConnection()
Description copied from interface: ConnectionManager
Determines if the default connection is current

Specified by:
isCurrentDefaultConnection in interface ConnectionManager
Returns:

getConnections

public Collection getConnections()