net.agmodel.brokerImpl
Class GenericContext
java.lang.Object
net.agmodel.brokerImpl.GenericContext
- Direct Known Subclasses:
- MetBrokerContext
- public class GenericContext
- extends Object
The Context class is used by brokers to maintain
client-specific context. A Context object is instantiated
for each new client-connection.
- Version:
- 1.0
- Author:
- Matthew Laurenson
GenericContext
public GenericContext(String c,
String language,
String sessionID)
getLanguage
public String getLanguage()
getSessionID
public String getSessionID()
addConnection
public void addConnection(String sourceID,
DBAccessMechanism connection)
removeConnection
public void removeConnection(String sourceID)
getConnection
public DBAccessMechanism getConnection(String sourceID)
isConnectedTo
public boolean isConnectedTo(String sourceID)
getMillisUnused
public long getMillisUnused()
recordUse
public void recordUse()
dispose
public boolean dispose()
- Released database connections and links to MetSources held by the context.
Normally called by disconnect(), but may also be called by SessionTerminator
- Returns:
- true if the session is disposed of normally, false if another thread is in the process of terminating the session.
Copyright (C) NARC 2001 All Rights Reserved.