|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.instrumentmiddleware.cima.session.impl.SessionManager
public class SessionManager
This ISessionManager implementation maintains two Maps of sessions to allow for quicker lookups.
| Constructor Summary | |
|---|---|
SessionManager(IPluginManager pluginManager)
|
|
| Method Summary | |
|---|---|
void |
addSession(ISession session)
|
IRegisteredParcel |
createRegisteredParcel(IPlugin plugin,
org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
create a parcel that knows who it needs to be delivered to |
ISession |
createSession(ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType recipient)
Create a new session. |
ISession |
createSession(java.lang.String sessionId,
ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType recipient)
Create a new session. |
ISession |
getSession(java.lang.String sessionId)
retrieve a single session given the id |
java.util.List<ISession> |
getSessions(IPlugin key)
Retrieve the sessions belonging to the plugin. |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
ISession |
removeSession(java.lang.String sessionId)
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionManager(IPluginManager pluginManager)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
public IRegisteredParcel createRegisteredParcel(IPlugin plugin,
org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
ISessionManager
createRegisteredParcel in interface ISessionManagerpublic void addSession(ISession session)
addSession in interface ISessionManagerpublic ISession getSession(java.lang.String sessionId)
getSession in interface ISessionManagersessionId -
public ISession removeSession(java.lang.String sessionId)
removeSession in interface ISessionManagerpublic java.util.List<ISession> getSessions(IPlugin key)
getSessions in interface ISessionManagerkey -
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
event - ISessionManager}
public ISession createSession(ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType recipient)
throws java.lang.Exception
createSession in interface ISessionManagerplugin - The local pluginrecipient - The remote entity
java.lang.Exception
public ISession createSession(java.lang.String sessionId,
ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType recipient)
throws java.lang.Exception
createSession in interface ISessionManagersessionId - The session idplugin - The local pluginrecipient - The remote entity
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||