Class Connector

java.lang.Object
com.groiss.cluster.communication.Connector

public class Connector extends Object
The facade to the cluster communication mechanism.
  • Method Details

    • publish

      public static void publish(Message m)
      Publishes the message at commit time.
      Parameters:
      m - the message to publish
    • publishImmediate

      public static void publishImmediate(Message m) throws Exception
      Publishes the Message immediately.
      Parameters:
      m - the message to publish
      Throws:
      Exception
    • registerHandler

      public static void registerHandler(Handler h, String msgType)
      Registers a handler for receiving cluster messages.
      Parameters:
      h - the handler to register
      msgType - the type of message to handle
    • deRegisterHandler

      public static void deRegisterHandler(Handler h, String msgType)
      Removes a handler for receiving cluster messages.
      Parameters:
      h - the handler to register
      msgType - the type of message to handle
    • registerHandler

      public static void registerHandler(Handler h)
      Registers a handler for receiving cluster messages.
      Parameters:
      h - the handler to register
    • deRegisterHandler

      public static void deRegisterHandler(Handler h)
      Removes a handler for receiving cluster messages.
      Parameters:
      h - the handler to deregister