org.kie.commons.io.impl.cluster.helix
Class ClusterServiceHelix
java.lang.Object
org.kie.commons.io.impl.cluster.helix.ClusterServiceHelix
- All Implemented Interfaces:
- ClusterService, LockService, MessageService
public class ClusterServiceHelix
- extends Object
- implements ClusterService
|
Method Summary |
void |
broadcast(MessageType type,
Map<String,String> content)
|
void |
broadcast(MessageType type,
Map<String,String> content,
int timeOut,
AsyncCallback callback)
|
void |
broadcastAndWait(MessageType type,
Map<String,String> content,
int timeOut)
|
void |
broadcastAndWait(MessageType type,
Map<String,String> content,
int timeOut,
AsyncCallback callback)
|
void |
lock()
|
void |
sendTo(String resourceId,
MessageType type,
Map<String,String> content)
|
void |
unlock()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterServiceHelix
public ClusterServiceHelix(String clusterName,
String zkAddress,
String instanceName,
String resourceName,
MessageHandlerResolver messageHandlerResolver)
lock
public void lock()
- Specified by:
lock in interface LockService
unlock
public void unlock()
- Specified by:
unlock in interface LockService
broadcastAndWait
public void broadcastAndWait(MessageType type,
Map<String,String> content,
int timeOut)
- Specified by:
broadcastAndWait in interface MessageService
broadcastAndWait
public void broadcastAndWait(MessageType type,
Map<String,String> content,
int timeOut,
AsyncCallback callback)
- Specified by:
broadcastAndWait in interface MessageService
broadcast
public void broadcast(MessageType type,
Map<String,String> content)
- Specified by:
broadcast in interface MessageService
broadcast
public void broadcast(MessageType type,
Map<String,String> content,
int timeOut,
AsyncCallback callback)
- Specified by:
broadcast in interface MessageService
sendTo
public void sendTo(String resourceId,
MessageType type,
Map<String,String> content)
- Specified by:
sendTo in interface MessageService
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.