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 final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static de.root1.simon.serializer.SerializationSigner
    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 the AbstractLookup.serverDispatcherRelation Map based on the passed lookup.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • SimonUtils

      public SimonUtils()
  • Method Details

    • 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 the AbstractLookup.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