|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.spi.ClientProxy
com.hazelcast.client.proxy.ClientExecutorServiceProxy
public class ClientExecutorServiceProxy
| Constructor Summary | |
|---|---|
ClientExecutorServiceProxy(String serviceName,
String objectId)
|
|
| Method Summary | ||
|---|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
|
|
void |
execute(Runnable command)
|
|
void |
execute(Runnable command,
MemberSelector memberSelector)
Executes a task on a randomly selected member. |
|
void |
executeOnAllMembers(Runnable command)
Executes a task on all of the known cluster members. |
|
void |
executeOnKeyOwner(Runnable command,
Object key)
Executes a task on the owner of the specified key. |
|
void |
executeOnMember(Runnable command,
Member member)
Executes a task on the specified member. |
|
void |
executeOnMembers(Runnable command,
Collection<Member> members)
Executes a task on each of the specified members. |
|
void |
executeOnMembers(Runnable command,
MemberSelector memberSelector)
Executes a task on each of the selected members. |
|
LocalExecutorStats |
getLocalExecutorStats()
Returns local statistics related to this executor service. |
|
|
invokeAll(Collection<? extends Callable<T>> tasks)
|
|
|
invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
|
|
|
invokeAny(Collection<? extends Callable<T>> tasks)
|
|
|
invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
|
|
boolean |
isShutdown()
|
|
boolean |
isTerminated()
|
|
void |
shutdown()
|
|
List<Runnable> |
shutdownNow()
|
|
|
submit(Callable<T> task)
|
|
|
submit(Callable<T> task,
ExecutionCallback<T> callback)
Submits a task to a random member. |
|
|
submit(Callable<T> task,
MemberSelector memberSelector)
Submits a task to a randomly selected member and returns a Future representing that task. |
|
|
submit(Callable<T> task,
MemberSelector memberSelector,
ExecutionCallback<T> callback)
Submits task to a randomly selected member. |
|
Future<?> |
submit(Runnable command)
|
|
void |
submit(Runnable command,
ExecutionCallback callback)
Submits a task to a random member. |
|
void |
submit(Runnable task,
MemberSelector memberSelector,
ExecutionCallback callback)
Submits a task to randomly selected members. |
|
|
submit(Runnable command,
T result)
|
|
|
submitToAllMembers(Callable<T> task)
Submits task to all cluster members and returns a map of Member-Future pairs representing pending completion of the task on each member. |
|
|
submitToAllMembers(Callable<T> task,
MultiExecutionCallback callback)
Submits task to all the cluster members. |
|
void |
submitToAllMembers(Runnable command,
MultiExecutionCallback callback)
Submits task to all the cluster members. |
|
|
submitToKeyOwner(Callable<T> task,
Object key)
Submits a task to the owner of the specified key and returns a Future representing that task. |
|
|
submitToKeyOwner(Callable<T> task,
Object key,
ExecutionCallback<T> callback)
Submits task to the owner of the specified key. |
|
void |
submitToKeyOwner(Runnable command,
Object key,
ExecutionCallback callback)
Submits a task to the owner of the specified key. |
|
|
submitToMember(Callable<T> task,
Member member)
Submits a task to the specified member and returns a Future representing that task. |
|
|
submitToMember(Callable<T> task,
Member member,
ExecutionCallback<T> callback)
Submits a task to the specified member. |
|
void |
submitToMember(Runnable command,
Member member,
ExecutionCallback callback)
Submits a task to the specified member. |
|
|
submitToMembers(Callable<T> task,
Collection<Member> members)
Submits a task to given members and returns map of Member-Future pairs representing pending completion of the task on each member |
|
|
submitToMembers(Callable<T> task,
Collection<Member> members,
MultiExecutionCallback callback)
Submits a task to the specified members. |
|
|
submitToMembers(Callable<T> task,
MemberSelector memberSelector)
Submits a task to selected members and returns a map of Member-Future pairs representing pending completion of the task on each member. |
|
|
submitToMembers(Callable<T> task,
MemberSelector memberSelector,
MultiExecutionCallback callback)
Submits task to the selected members. |
|
void |
submitToMembers(Runnable command,
Collection<Member> members,
MultiExecutionCallback callback)
Submits a task to the specified members. |
|
void |
submitToMembers(Runnable task,
MemberSelector memberSelector,
MultiExecutionCallback callback)
Submits task to the selected members. |
|
String |
toString()
|
|
| Methods inherited from class com.hazelcast.client.spi.ClientProxy |
|---|
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, listen, listen, onDestroy, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hazelcast.core.DistributedObject |
|---|
destroy, getId, getName, getPartitionKey, getServiceName |
| Constructor Detail |
|---|
public ClientExecutorServiceProxy(String serviceName,
String objectId)
| Method Detail |
|---|
public void execute(Runnable command)
execute in interface Executor
public void executeOnKeyOwner(Runnable command,
Object key)
IExecutorService
executeOnKeyOwner in interface IExecutorServicecommand - a task executed on the owner of the specified keykey - the specified key
public void executeOnMember(Runnable command,
Member member)
IExecutorService
executeOnMember in interface IExecutorServicecommand - the task executed on the specified membermember - the specified member
public void executeOnMembers(Runnable command,
Collection<Member> members)
IExecutorService
executeOnMembers in interface IExecutorServicecommand - the task executed on the specified membersmembers - the specified members
public void execute(Runnable command,
MemberSelector memberSelector)
IExecutorService
execute in interface IExecutorServicecommand - the task that is executed on a randomly selected membermemberSelector - memberSelector
public void executeOnMembers(Runnable command,
MemberSelector memberSelector)
IExecutorService
executeOnMembers in interface IExecutorServicecommand - a task executed on each of the selected membersmemberSelector - memberSelectorpublic void executeOnAllMembers(Runnable command)
IExecutorService
executeOnAllMembers in interface IExecutorServicecommand - a task executed on all of the known cluster members
public <T> Future<T> submitToMember(Callable<T> task,
Member member)
IExecutorService
submitToMember in interface IExecutorServicetask - the task submitted to the specified membermember - the specified member
public <T> Map<Member,Future<T>> submitToMembers(Callable<T> task,
Collection<Member> members)
IExecutorService
submitToMembers in interface IExecutorServicetask - the task submitted to given membersmembers - the given members
public <T> Future<T> submit(Callable<T> task,
MemberSelector memberSelector)
IExecutorService
submit in interface IExecutorServicetask - task submitted to a randomly selected membermemberSelector - memberSelector
public <T> Map<Member,Future<T>> submitToMembers(Callable<T> task,
MemberSelector memberSelector)
IExecutorService
submitToMembers in interface IExecutorServicetask - the task submitted to selected membersmemberSelector - memberSelector
public <T> Map<Member,Future<T>> submitToAllMembers(Callable<T> task)
IExecutorService
submitToAllMembers in interface IExecutorServicetask - the task submitted to all cluster members
public void submitToMember(Runnable command,
Member member,
ExecutionCallback callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submitToMember in interface IExecutorServicecommand - the task submitted to the specified membermember - the specified membercallback - callback
public void submitToMembers(Runnable command,
Collection<Member> members,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToMembers in interface IExecutorServicecommand - the task submitted to the specified membersmembers - the specified memberscallback - callback
public <T> void submitToMember(Callable<T> task,
Member member,
ExecutionCallback<T> callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submitToMember in interface IExecutorServicetask - the task submitted to the specified membercallback - callback
public <T> void submitToMembers(Callable<T> task,
Collection<Member> members,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToMembers in interface IExecutorServicetask - the task submitted to the specified membersmembers - the specified memberscallback - callback
public void submit(Runnable task,
MemberSelector memberSelector,
ExecutionCallback callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submit in interface IExecutorServicetask - the task submitted to randomly selected membersmemberSelector - memberSelectorcallback - callback
public void submitToMembers(Runnable task,
MemberSelector memberSelector,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToMembers in interface IExecutorServicetask - the task submitted to the selected membersmemberSelector - memberSelectorcallback - callback
public <T> void submit(Callable<T> task,
MemberSelector memberSelector,
ExecutionCallback<T> callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submit in interface IExecutorServicetask - the task submitted to a randomly selected membermemberSelector - memberSelectorcallback - callback
public <T> void submitToMembers(Callable<T> task,
MemberSelector memberSelector,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToMembers in interface IExecutorServicetask - the task submitted to the selected membersmemberSelector - memberSelectorcallback - callback
public void submitToAllMembers(Runnable command,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToAllMembers in interface IExecutorServicecommand - the task submitted to all the cluster memberscallback - callback
public <T> void submitToAllMembers(Callable<T> task,
MultiExecutionCallback callback)
IExecutorServiceMultiExecutionCallback.onResponse(Member, Object), and when all tasks are completed,
MultiExecutionCallback.onComplete(java.util.Map) will be called.
submitToAllMembers in interface IExecutorServicetask - the task submitted to all the cluster memberscallback - callbackpublic Future<?> submit(Runnable command)
submit in interface ExecutorService
public <T> Future<T> submit(Runnable command,
T result)
submit in interface ExecutorServicepublic <T> Future<T> submit(Callable<T> task)
submit in interface ExecutorService
public void submit(Runnable command,
ExecutionCallback callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submit in interface IExecutorServicecommand - a task submitted to a random membercallback - callback
public <T> void submit(Callable<T> task,
ExecutionCallback<T> callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submit in interface IExecutorServicetask - the task submitted to a random membercallback - callback
public <T> Future<T> submitToKeyOwner(Callable<T> task,
Object key)
IExecutorService
submitToKeyOwner in interface IExecutorServicetask - task submitted to the owner of the specified keykey - the specified key
public void submitToKeyOwner(Runnable command,
Object key,
ExecutionCallback callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submitToKeyOwner in interface IExecutorServicecommand - task submitted to the owner of the specified keykey - the specified keycallback - callback
public <T> void submitToKeyOwner(Callable<T> task,
Object key,
ExecutionCallback<T> callback)
IExecutorServiceExecutionCallback.onResponse(Object) or ExecutionCallback.onFailure(Throwable).
submitToKeyOwner in interface IExecutorServicetask - the task submitted to the owner of the specified keycallback - callbackpublic LocalExecutorStats getLocalExecutorStats()
IExecutorService
getLocalExecutorStats in interface IExecutorServicepublic void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorService
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedException
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedException
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedException
public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
throws InterruptedException,
ExecutionException
invokeAny in interface ExecutorServiceInterruptedException
ExecutionException
public <T> T invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
invokeAny in interface ExecutorServiceInterruptedException
ExecutionException
TimeoutExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||