com.groiss.cluster.communication
Class Connector

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

public class Connector
extends java.lang.Object

The facade to the cluster communication mechanism.


Constructor Summary
Connector()
           
 
Method Summary
static void deRegisterHandler(Handler h)
          Registers a handler for receiving cluster messages.
static void deRegisterHandler(Handler h, java.lang.String msgType)
          Registers a handler for receiving cluster messages.
static void publish(Message m)
          Publishes the message at commit time.
static void publishImmediate(Message m)
          Publishes the Message immediately.
static void registerHandler(Handler h)
          Registers a handler for receiving cluster messages.
static void registerHandler(Handler h, java.lang.String msgType)
          Registers a handler for receiving cluster messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Method Detail

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 java.lang.Exception
Publishes the Message immediately.

Parameters:
m - the message to publish
Throws:
java.lang.Exception

registerHandler

public static void registerHandler(Handler h,
                                   java.lang.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,
                                     java.lang.String msgType)
Registers 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)
Registers a handler for receiving cluster messages.

Parameters:
h - the handler to deregister


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.