Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mule.umo.impl
Class MuleSessionManager  view MuleSessionManager download MuleSessionManager.java

java.lang.Object
  extended byorg.mule.umo.impl.MuleSessionManager

public class MuleSessionManager
extends java.lang.Object

MuleSessionManagerIs responsible managing MuleSession instances and any state that may be shared among them.

Version:
$Revision: 1.4 $

Field Summary
protected  java.util.Map descriptors
          Collection for mule descriptors registered in this Manager
private static MuleSessionManager instance
          holds the singleton instace of this manager
private static org.apache.commons.logging.Log log
          logger used by this class
private  java.util.List receiverProxies
          holds a list of receivers currently waiting for an event
protected  java.util.Map sessions
          Collection for mule sessions registered in this Manager
 
Constructor Summary
private MuleSessionManager()
          default constructor
 
Method Summary
(package private)  void addReceiverProxy(ReceiverProxy proxy)
          Registers a Receiver proxy with the Session Manager
(package private)  void checkReceiverProxies(org.mule.umo.UMOEvent event)
          Checks all registered ReceiverProxy objects to see if they are waiting for this event
 void destroy()
          Destroys any current sessions and cleans up any other resources used by the manager
private  void destroySessions()
          Destroys any current sessions
static MuleSessionManager getInstance()
          Creates the MuleSessionManager instance if not already created and returns the instance
 org.mule.umo.UMOSession getSession(java.lang.String muleName)
          Returns a valid session for the given Mule name
 org.mule.umo.UMOSession getSession(org.mule.umo.UMODescriptor descriptor)
          Returns a valid session for the given descriptor
 org.mule.umo.UMOSession registerSession(org.mule.umo.UMODescriptor descriptor)
          Will create and store a session for the given UMODescriptor
(package private)  void removeReceiverProxy(ReceiverProxy proxy)
          Deregisters a Receiver proxy from the Session Manager
 void start()
          Starts all registered sessions
 void stop()
          Stops any registered sessions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static transient org.apache.commons.logging.Log log
logger used by this class


sessions

protected java.util.Map sessions
Collection for mule sessions registered in this Manager


descriptors

protected java.util.Map descriptors
Collection for mule descriptors registered in this Manager


instance

private static MuleSessionManager instance
holds the singleton instace of this manager


receiverProxies

private java.util.List receiverProxies
holds a list of receivers currently waiting for an event

Constructor Detail

MuleSessionManager

private MuleSessionManager()
default constructor

Method Detail

getInstance

public static MuleSessionManager getInstance()
Creates the MuleSessionManager instance if not already created and returns the instance


destroy

public void destroy()
             throws org.mule.umo.UMOException
Destroys any current sessions and cleans up any other resources used by the manager


destroySessions

private void destroySessions()
                      throws org.mule.umo.UMOException
Destroys any current sessions


getSession

public org.mule.umo.UMOSession getSession(org.mule.umo.UMODescriptor descriptor)
                                   throws org.mule.umo.UMOException
Returns a valid session for the given descriptor


getSession

public org.mule.umo.UMOSession getSession(java.lang.String muleName)
                                   throws org.mule.umo.UMOException
Returns a valid session for the given Mule name


registerSession

public org.mule.umo.UMOSession registerSession(org.mule.umo.UMODescriptor descriptor)
                                        throws org.mule.umo.UMOException
Will create and store a session for the given UMODescriptor


stop

public void stop()
          throws org.mule.umo.UMOException
Stops any registered sessions


start

public void start()
           throws org.mule.umo.UMOException
Starts all registered sessions


checkReceiverProxies

void checkReceiverProxies(org.mule.umo.UMOEvent event)
Checks all registered ReceiverProxy objects to see if they are waiting for this event


addReceiverProxy

void addReceiverProxy(ReceiverProxy proxy)
Registers a Receiver proxy with the Session Manager


removeReceiverProxy

void removeReceiverProxy(ReceiverProxy proxy)
Deregisters a Receiver proxy from the Session Manager