Class 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()  
    • Field Detail

      • LOG

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

      • SimonUtils

        public SimonUtils()
    • 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 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