Package de.root1.simon
Class SimonUtils
- java.lang.Object
-
- de.root1.simon.SimonUtils
-
public class SimonUtils extends Object
Utility class for Simon.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description SimonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static de.root1.simon.serializer.SerializationSigner
getSerializationSigner()
Get the currently configured serialization signer.static org.apache.mina.core.session.IoSession
getSession(Object remoteObject)
Get the IoSession from a remote object.static void
resetLookup(de.root1.simon.Lookup lookup)
This method removes the corresponding connection of the Simon server from theAbstractLookup.serverDispatcherRelation
Map based on the passed lookup.
-
-
-
Method Detail
-
getSession
public static org.apache.mina.core.session.IoSession getSession(Object remoteObject)
Get the IoSession from a remote object.- Parameters:
remoteObject
- the remote object- Returns:
- the IoSession
-
getSerializationSigner
public static de.root1.simon.serializer.SerializationSigner getSerializationSigner()
Get the currently configured serialization signer.- Returns:
- the serialization signer
-
resetLookup
public static void resetLookup(de.root1.simon.Lookup lookup)
This method removes the corresponding connection of the Simon server from theAbstractLookup.serverDispatcherRelation
Map based on the passed lookup. It also releases the corresponding dispatcher and shuts it down.- Parameters:
lookup
- for which the connection is to be removed
-
-