jasco.runtime.distribution
Class DistributedConnectorHandler

java.lang.Object
  extended by jasco.runtime.distribution.DistributedConnectorHandler
All Implemented Interfaces:
org.jgroups.blocks.RequestHandler

public class DistributedConnectorHandler
extends java.lang.Object
implements org.jgroups.blocks.RequestHandler

This singleton class manages the comunication of the Jasco connector events with the group of instances that belongs to the same group.

Author:
lbenavid

Method Summary
 org.jgroups.Channel getChannel()
           
 java.util.HashSet getConnSet()
           
static DistributedConnectorHandler getInstance()
           
 java.lang.Object handle(org.jgroups.Message msg)
           
 boolean isLocal(Connector c)
          Return true if the connector is loaded in the local jasco runtime
 java.lang.Object receiveNotification(DistributedJascoMessage aMessage)
          This methods is executed when a connector notification is received
 void sendNotification(DistributedJascoMessage dm)
           
 void setConnSet(java.util.HashSet connSet)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChannel

public org.jgroups.Channel getChannel()

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static DistributedConnectorHandler getInstance()

sendNotification

public void sendNotification(DistributedJascoMessage dm)

receiveNotification

public java.lang.Object receiveNotification(DistributedJascoMessage aMessage)
This methods is executed when a connector notification is received


handle

public java.lang.Object handle(org.jgroups.Message msg)
Specified by:
handle in interface org.jgroups.blocks.RequestHandler

getConnSet

public java.util.HashSet getConnSet()
Returns:
Returns the connSet.

setConnSet

public void setConnSet(java.util.HashSet connSet)
Parameters:
connSet - The connSet to set.

isLocal

public boolean isLocal(Connector c)
Return true if the connector is loaded in the local jasco runtime