Class SimonUtils
java.lang.Object
de.root1.simon.SimonUtils
Utility class for Simon.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic de.root1.simon.serializer.SerializationSignerGet the currently configured serialization signer.static org.apache.mina.core.session.IoSessiongetSession(Object remoteObject) Get the IoSession from a remote object.static voidresetLookup(de.root1.simon.Lookup lookup) This method removes the corresponding connection of the Simon server from theAbstractLookup.serverDispatcherRelationMap based on the passed lookup.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
SimonUtils
public SimonUtils()
-
-
Method Details
-
getSession
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.serverDispatcherRelationMap 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
-