|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationService
The OperationService is responsible for executing operations.
A single operation can be executed locally using runOperation(Operation) and executeOperation(Operation).
Or it can executed remotely using the one of the send methods.
It also is possible to execute multiple operation one multiple partitions using one of the invoke methods.
| Method Summary | ||
|---|---|---|
InvocationBuilder |
createInvocationBuilder(String serviceName,
Operation op,
com.hazelcast.nio.Address target)
|
|
InvocationBuilder |
createInvocationBuilder(String serviceName,
Operation op,
int partitionId)
|
|
void |
executeOperation(Operation op)
Executes operation in operation executor pool. |
|
long |
getExecutedOperationCount()
|
|
int |
getOperationExecutorQueueSize()
|
|
int |
getOperationThreadCount()
|
|
int |
getPriorityOperationExecutorQueueSize()
|
|
int |
getRemoteOperationsCount()
|
|
int |
getResponseQueueSize()
|
|
int |
getRunningOperationsCount()
|
|
Map<Integer,Object> |
invokeOnAllPartitions(String serviceName,
OperationFactory operationFactory)
Invokes a set of operation on each partition. |
|
|
invokeOnPartition(String serviceName,
Operation op,
int partitionId)
|
|
Map<Integer,Object> |
invokeOnPartitions(String serviceName,
OperationFactory operationFactory,
Collection<Integer> partitions)
Invokes an set of operation on selected set of partitions |
|
|
invokeOnTarget(String serviceName,
Operation op,
com.hazelcast.nio.Address target)
|
|
void |
runOperation(Operation op)
Runs operation in calling thread. |
|
boolean |
send(Operation op,
com.hazelcast.nio.Address target)
Executes an operation remotely. |
|
boolean |
send(com.hazelcast.spi.impl.Response response,
com.hazelcast.nio.Address target)
|
|
| Method Detail |
|---|
int getResponseQueueSize()
int getOperationExecutorQueueSize()
int getPriorityOperationExecutorQueueSize()
int getRunningOperationsCount()
int getRemoteOperationsCount()
int getOperationThreadCount()
long getExecutedOperationCount()
void runOperation(Operation op)
op - the operation to execute.void executeOperation(Operation op)
op - the operation to execute.
<E> InternalCompletableFuture<E> invokeOnPartition(String serviceName,
Operation op,
int partitionId)
<E> InternalCompletableFuture<E> invokeOnTarget(String serviceName,
Operation op,
com.hazelcast.nio.Address target)
InvocationBuilder createInvocationBuilder(String serviceName,
Operation op,
int partitionId)
InvocationBuilder createInvocationBuilder(String serviceName,
Operation op,
com.hazelcast.nio.Address target)
Map<Integer,Object> invokeOnAllPartitions(String serviceName,
OperationFactory operationFactory)
throws Exception
serviceName - operationFactory - the factory responsible creating operations
Exception
Map<Integer,Object> invokeOnPartitions(String serviceName,
OperationFactory operationFactory,
Collection<Integer> partitions)
throws Exception
serviceName - operationFactory - the factory responsible creating operationspartitions - the partitions the operation should be executed on.
Exception
boolean send(Operation op,
com.hazelcast.nio.Address target)
op - the operation to send and execute.target - the address of that target member.
boolean send(com.hazelcast.spi.impl.Response response,
com.hazelcast.nio.Address target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||