|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.storagemanager.StorageManager
org.aselect.server.tgt.TGTManager
public class TGTManager
The A-Select Server TGT manager.
Description:
Creates TGT's and storages them in a storage manager.
Concurrency issues:
-
Method Summary | |
---|---|
java.lang.String |
createTGT(java.util.Hashtable htTGTContext)
Creates a new TGT for the supplied data and stores it in the storage manager. |
static TGTManager |
getHandle()
Method to return an instance of the TGTManager instead of
using the constructor. |
java.util.Hashtable |
getTGT(java.lang.String sTGT)
Returns the tgt context for the tgt specified in sTGT . |
long |
getTGTCounter()
Returns the number of TGT's that are created by the TGT manager for monitoring purposes. |
void |
init()
Initializes the A-Select TGT Manager. |
boolean |
updateTGT(java.lang.String sTGT,
java.util.Hashtable htTGTContext)
Updates a valid tgt context with a new one. |
Methods inherited from class org.aselect.system.storagemanager.StorageManager |
---|
containsKey, destroy, get, getAll, getCount, getExpirationTime, getTimestamp, init, put, remove, removeAll, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TGTManager getHandle()
TGTManager
instead of
using the constructor.
TGTManager
instance.public void init() throws ASelectException
ASelectSystemLogger
must be initializedASelectConfigManager
must be initialized
ASelectException
- if config is missing or the configured information is incorrectpublic java.lang.String createTGT(java.util.Hashtable htTGTContext) throws ASelectException
htTGTContext
contains information from the caller. The
caller can retrieve this information by calling the
getTGT()
method.
htTGTContext
- The context of the TGT that will be created.
ASelectException
- If creation fails.public boolean updateTGT(java.lang.String sTGT, java.util.Hashtable htTGTContext)
sTGT
- The TGT that must be updatedhtTGTContext
- The new context of the TGT
public java.util.Hashtable getTGT(java.lang.String sTGT)
sTGT
.
sTGT
- The A-Select TGT created with the createTGT method
Hashtable
containing the TGT contextpublic long getTGTCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |