uk.ac.starlink.srb
Class SRBConnection

java.lang.Object
  extended by uk.ac.starlink.connect.Connection
      extended by uk.ac.starlink.srb.SRBConnection

public class SRBConnection
extends Connection

Connection to an SRB remote filestore.

Since:
7 Mar 2005
Author:
Mark Taylor (Starlink)

Constructor Summary
SRBConnection(Connector connector, Map keys, edu.sdsc.grid.io.srb.SRBFile rootFile)
           
 
Method Summary
 Branch getRoot()
          Returns the root of the remote filesystem provided by this connection.
 boolean isConnected()
          Indicates whether this connection is currently up and running.
 void logOut()
          Closes this connection.
 
Methods inherited from class uk.ac.starlink.connect.Connection
getAuthValue, getConnector, setLogoutOnExit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SRBConnection

public SRBConnection(Connector connector,
                     Map keys,
                     edu.sdsc.grid.io.srb.SRBFile rootFile)
              throws IOException
Throws:
IOException
Method Detail

getRoot

public Branch getRoot()
Description copied from class: Connection
Returns the root of the remote filesystem provided by this connection. This method should not do work, but only return an existing branch (acquired at login time); that is the root branch should not be constructed lazily.

Specified by:
getRoot in class Connection
Returns:
root of the virtual filesystem associated with this connection

isConnected

public boolean isConnected()
Description copied from class: Connection
Indicates whether this connection is currently up and running. Hopefully it will return true until Connection.logOut() has been called, but it's possible that the connection may expire for some reason before that.

Specified by:
isConnected in class Connection

logOut

public void logOut()
            throws IOException
Description copied from class: Connection
Closes this connection.

Specified by:
logOut in class Connection
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.