org.instrumentmiddleware.cima.session.impl
Class MapExtenderSession
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.instrumentmiddleware.cima.session.impl.MapExtenderSession
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.reflect.InvocationHandler, java.util.Map<java.lang.String,java.lang.Object>, ISession
public class MapExtenderSession
- extends java.util.HashMap<java.lang.String,java.lang.Object>
- implements java.lang.reflect.InvocationHandler, ISession
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Method Summary |
static ISession |
createNewSession(java.lang.String id,
ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType subscriber)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getId()
|
ICIMAPlugin |
getPlugin()
retrieve the local plugin instance that is involved in the session indicated by sessionId |
org.instrumentmiddleware.cima.parcel.EntityType |
getSubscriber()
retrieve the the remote plugin reference that is involved in the session indicated by sessionId |
void |
invalidate()
invalidate the session |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
see InvocationHandler.invoke() |
boolean |
isValid()
|
java.lang.String |
toString()
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
hashCode |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- see InvocationHandler.invoke()
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
createNewSession
public static ISession createNewSession(java.lang.String id,
ICIMAPlugin plugin,
org.instrumentmiddleware.cima.parcel.EntityType subscriber)
throws java.lang.Exception
- Throws:
java.lang.Exception
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals in interface java.util.Map<java.lang.String,java.lang.Object>- Overrides:
equals in class java.util.AbstractMap<java.lang.String,java.lang.Object>
getId
public java.lang.String getId()
- Specified by:
getId in interface ISession
invalidate
public void invalidate()
- Description copied from interface:
ISession
- invalidate the session
- Specified by:
invalidate in interface ISession
isValid
public boolean isValid()
- Specified by:
isValid in interface ISession
- Returns:
- whether the session is valid
getPlugin
public ICIMAPlugin getPlugin()
- Description copied from interface:
ISession
- retrieve the local plugin instance that is involved in the session indicated by sessionId
- Specified by:
getPlugin in interface ISession
- Returns:
- the local plugin instance
getSubscriber
public org.instrumentmiddleware.cima.parcel.EntityType getSubscriber()
- Description copied from interface:
ISession
- retrieve the the remote plugin reference that is involved in the session indicated by sessionId
- Specified by:
getSubscriber in interface ISession
- Returns:
- the remote plugin reference
toString
public java.lang.String toString()
- Overrides:
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>
Copyright © 2008. All Rights Reserved.