au.edu.archer.service.srb.impl
Class SRBManager

java.lang.Object
  extended by au.edu.archer.service.srb.impl.SRBManager

public class SRBManager
extends java.lang.Object

SRB Manager for managing SRBFileSystem objects. Implements Singleton pattern.


Method Summary
static SRBManager getInstance()
          Get singleton SRBManager instance.
 edu.sdsc.grid.io.srb.SRBAccount getSRBAccount(java.lang.String sessionId)
          Retrieve SRBAccount from cache.
 void putSRBAccount(java.lang.String sessionId, edu.sdsc.grid.io.srb.SRBAccount account)
          Add entry in SRBManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SRBManager getInstance()
Get singleton SRBManager instance.

Returns:
SRBManager singleton SRBManager instance.

putSRBAccount

public void putSRBAccount(java.lang.String sessionId,
                          edu.sdsc.grid.io.srb.SRBAccount account)
Add entry in SRBManager.

Parameters:
sessionId - session id to store against.
account - SRBAccount object.

getSRBAccount

public edu.sdsc.grid.io.srb.SRBAccount getSRBAccount(java.lang.String sessionId)
Retrieve SRBAccount from cache.

Parameters:
sessionId - session id against which the SRBAccount is stored.
Returns:
SRBAccount cached object.


Copyright © 2008-09 Monash University. All Rights Reserved.