net.agmodel.metBroker
Class MetBrokerContext

java.lang.Object
  extended bynet.agmodel.brokerImpl.GenericContext
      extended bynet.agmodel.metBroker.MetBrokerContext

public class MetBrokerContext
extends GenericContext

The Context class is used by MetBrokerImpl to maintain client-specific context. A Context object is instantiated for each new client-connection. Each client connection has its own PSE Pro Session.


Constructor Summary
MetBrokerContext(String c, String language, String sessionID)
           
 
Method Summary
 void addMetSourceSession(MetSourceImpl source)
           
 boolean dispose()
          Released database connections and links to MetSources held by the context.
 MetAccessMechanism getMetConnection(String sourceID)
           
 
Methods inherited from class net.agmodel.brokerImpl.GenericContext
addConnection, getConnection, getLanguage, getMillisUnused, getSessionID, isConnectedTo, recordUse, removeConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetBrokerContext

public MetBrokerContext(String c,
                        String language,
                        String sessionID)
Method Detail

addMetSourceSession

public void addMetSourceSession(MetSourceImpl source)

getMetConnection

public MetAccessMechanism getMetConnection(String sourceID)

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

Overrides:
dispose in class GenericContext
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.