Kie Commons I/O 6.0.0.CR5

org.kie.commons.io.impl.cluster.helix
Class ClusterServiceHelix

java.lang.Object
  extended by org.kie.commons.io.impl.cluster.helix.ClusterServiceHelix
All Implemented Interfaces:
org.kie.commons.cluster.ClusterService, org.kie.commons.lock.LockService, org.kie.commons.message.MessageService

public class ClusterServiceHelix
extends Object
implements org.kie.commons.cluster.ClusterService


Constructor Summary
ClusterServiceHelix(String clusterName, String zkAddress, String instanceName, String resourceName, org.kie.commons.message.MessageHandlerResolver messageHandlerResolver)
           
 
Method Summary
 void broadcast(org.kie.commons.message.MessageType type, Map<String,String> content)
           
 void broadcast(org.kie.commons.message.MessageType type, Map<String,String> content, int timeOut, org.kie.commons.message.AsyncCallback callback)
           
 void broadcastAndWait(org.kie.commons.message.MessageType type, Map<String,String> content, int timeOut)
           
 void broadcastAndWait(org.kie.commons.message.MessageType type, Map<String,String> content, int timeOut, org.kie.commons.message.AsyncCallback callback)
           
 void dispose()
           
 boolean isLocked()
           
 boolean isStarted()
           
 void lock()
           
 void sendTo(String resourceId, org.kie.commons.message.MessageType type, Map<String,String> content)
           
 void start()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterServiceHelix

public ClusterServiceHelix(String clusterName,
                           String zkAddress,
                           String instanceName,
                           String resourceName,
                           org.kie.commons.message.MessageHandlerResolver messageHandlerResolver)
Method Detail

start

public void start()
Specified by:
start in interface org.kie.commons.cluster.ClusterService

isStarted

public boolean isStarted()

dispose

public void dispose()
Specified by:
dispose in interface org.kie.commons.cluster.ClusterService

lock

public void lock()
Specified by:
lock in interface org.kie.commons.lock.LockService

unlock

public void unlock()
Specified by:
unlock in interface org.kie.commons.lock.LockService

isLocked

public boolean isLocked()
Specified by:
isLocked in interface org.kie.commons.lock.LockService

broadcastAndWait

public void broadcastAndWait(org.kie.commons.message.MessageType type,
                             Map<String,String> content,
                             int timeOut)
Specified by:
broadcastAndWait in interface org.kie.commons.message.MessageService

broadcastAndWait

public void broadcastAndWait(org.kie.commons.message.MessageType type,
                             Map<String,String> content,
                             int timeOut,
                             org.kie.commons.message.AsyncCallback callback)
Specified by:
broadcastAndWait in interface org.kie.commons.message.MessageService

broadcast

public void broadcast(org.kie.commons.message.MessageType type,
                      Map<String,String> content)
Specified by:
broadcast in interface org.kie.commons.message.MessageService

broadcast

public void broadcast(org.kie.commons.message.MessageType type,
                      Map<String,String> content,
                      int timeOut,
                      org.kie.commons.message.AsyncCallback callback)
Specified by:
broadcast in interface org.kie.commons.message.MessageService

sendTo

public void sendTo(String resourceId,
                   org.kie.commons.message.MessageType type,
                   Map<String,String> content)
Specified by:
sendTo in interface org.kie.commons.message.MessageService

Kie Commons I/O 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.