org.globus.cog.gridface.impl.directorybrowser
Class ConnectionObjectImpl

java.lang.Object
  extended byorg.globus.cog.gridface.impl.directorybrowser.ConnectionObjectImpl
All Implemented Interfaces:
ConnectionObject

public class ConnectionObjectImpl
extends Object
implements ConnectionObject


Constructor Summary
ConnectionObjectImpl(StatusListener statusListener, GridCommandManager gcm)
           
 
Method Summary
 GridCommand close()
          Call when browser window is closed.
 GridCommand connect(String protocol, String host, String port)
          Connect to the specified server and port.
 GridCommand disConnect()
          Close the connection.
 GridCommandManager getGcm()
           
 String getHost()
          Get Hostname of the underlying client
 String getPort()
          Get Port of the underlying client
 String getProtocol()
          Set the protocol for the underlying connection
 void getProxy()
          Get Proxy for this connection
 String getSecurityContext()
          Get Port of the underlying client
 Identity getSessionId()
           
 GridCommand reConnect()
          reconnect the connection *
 void setHost(String host)
          Set the hostname for the underlying connection
 void setPassword(String password)
           
 void setPort(String port)
          Set port for the underlying connection
 void setProtocol(String protocol)
          Set the protocl for the underlyging connection
 void setProxy()
          Set proxy for this connection
 void setSecurityContext(String port)
          Set port for the underlying connection
 void setSessionId(Identity sessionId)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionObjectImpl

public ConnectionObjectImpl(StatusListener statusListener,
                            GridCommandManager gcm)
Method Detail

getGcm

public GridCommandManager getGcm()

setSessionId

public void setSessionId(Identity sessionId)
Specified by:
setSessionId in interface ConnectionObject

getSessionId

public Identity getSessionId()
Specified by:
getSessionId in interface ConnectionObject

getHost

public String getHost()
Description copied from interface: ConnectionObject
Get Hostname of the underlying client

Specified by:
getHost in interface ConnectionObject

setHost

public void setHost(String host)
Description copied from interface: ConnectionObject
Set the hostname for the underlying connection

Specified by:
setHost in interface ConnectionObject

getPort

public String getPort()
Description copied from interface: ConnectionObject
Get Port of the underlying client

Specified by:
getPort in interface ConnectionObject

setPort

public void setPort(String port)
Description copied from interface: ConnectionObject
Set port for the underlying connection

Specified by:
setPort in interface ConnectionObject

getProtocol

public String getProtocol()
Description copied from interface: ConnectionObject
Set the protocol for the underlying connection

Specified by:
getProtocol in interface ConnectionObject

setProtocol

public void setProtocol(String protocol)
Description copied from interface: ConnectionObject
Set the protocl for the underlyging connection

Specified by:
setProtocol in interface ConnectionObject

getSecurityContext

public String getSecurityContext()
Description copied from interface: ConnectionObject
Get Port of the underlying client

Specified by:
getSecurityContext in interface ConnectionObject

setSecurityContext

public void setSecurityContext(String port)
Description copied from interface: ConnectionObject
Set port for the underlying connection

Specified by:
setSecurityContext in interface ConnectionObject

connect

public GridCommand connect(String protocol,
                           String host,
                           String port)
                    throws Exception
Connect to the specified server and port.

Specified by:
connect in interface ConnectionObject
Parameters:
host - The server to connect to.
port - The port to connect to.
Throws:
Exception

disConnect

public GridCommand disConnect()
Description copied from interface: ConnectionObject
Close the connection. Disconnect

Specified by:
disConnect in interface ConnectionObject

reConnect

public GridCommand reConnect()
                      throws Exception
Description copied from interface: ConnectionObject
reconnect the connection *

Specified by:
reConnect in interface ConnectionObject
Throws:
Exception

close

public GridCommand close()
Description copied from interface: ConnectionObject
Call when browser window is closed. Same as disconnect

Specified by:
close in interface ConnectionObject

getProxy

public void getProxy()
Description copied from interface: ConnectionObject
Get Proxy for this connection

Specified by:
getProxy in interface ConnectionObject

setProxy

public void setProxy()
Description copied from interface: ConnectionObject
Set proxy for this connection

Specified by:
setProxy in interface ConnectionObject

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface ConnectionObject

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface ConnectionObject