public interface OperationService
runOperationOnCallingThread(Operation)
and executeOperation(Operation)
. Or it can executed remotely using one of the send methods.
It also is possible to execute multiple operation on multiple partitions using one of the invoke methods.Modifier and Type | Method and Description |
---|---|
InvocationBuilder |
createInvocationBuilder(String serviceName,
Operation op,
Address target) |
InvocationBuilder |
createInvocationBuilder(String serviceName,
Operation op,
int partitionId) |
void |
dumpPerformanceMetrics(StringBuffer sb)
Deprecated.
|
void |
executeOperation(Operation op)
Executes an operation in the operation executor pool.
|
long |
getExecutedOperationCount()
Deprecated.
|
int |
getGenericOperationThreadCount()
Deprecated.
|
int |
getOperationExecutorQueueSize()
Deprecated.
|
int |
getPartitionOperationThreadCount()
Deprecated.
|
int |
getPriorityOperationExecutorQueueSize()
Deprecated.
|
int |
getRemoteOperationsCount()
Deprecated.
|
int |
getResponseQueueSize()
Deprecated.
|
int |
getRunningOperationsCount()
Deprecated.
|
Map<Integer,Object> |
invokeOnAllPartitions(String serviceName,
OperationFactory operationFactory)
Invokes a set of operation on each partition.
|
<E> InternalCompletableFuture<E> |
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
*
This method blocks until all operations complete.
|
<E> InternalCompletableFuture<E> |
invokeOnTarget(String serviceName,
Operation op,
Address target) |
boolean |
isAllowedToRunOnCallingThread(Operation op)
Deprecated.
since 3.5 since not needed anymore.
|
void |
runOperationOnCallingThread(Operation op)
Runs an operation in the calling thread.
|
boolean |
send(Operation op,
Address target)
Executes an operation remotely.
|
boolean |
send(Response response,
Address target)
Deprecated.
|
@Deprecated int getResponseQueueSize()
@Deprecated int getOperationExecutorQueueSize()
@Deprecated int getPriorityOperationExecutorQueueSize()
@Deprecated int getRunningOperationsCount()
@Deprecated int getRemoteOperationsCount()
@Deprecated int getPartitionOperationThreadCount()
@Deprecated int getGenericOperationThreadCount()
@Deprecated long getExecutedOperationCount()
@Deprecated void dumpPerformanceMetrics(StringBuffer sb)
void runOperationOnCallingThread(Operation op)
op
- the operation to execute in the calling threadvoid executeOperation(Operation op)
op
- the operation to execute in the operation executor pool.@Deprecated boolean isAllowedToRunOnCallingThread(Operation op)
runOperationOnCallingThread(Operation)
method, otherwise executeOperation(Operation)
should be used.op
- the operation to check.<E> InternalCompletableFuture<E> invokeOnPartition(String serviceName, Operation op, int partitionId)
<E> InternalCompletableFuture<E> invokeOnTarget(String serviceName, Operation op, Address target)
InvocationBuilder createInvocationBuilder(String serviceName, Operation op, int partitionId)
InvocationBuilder createInvocationBuilder(String serviceName, Operation op, Address target)
Map<Integer,Object> invokeOnAllPartitions(String serviceName, OperationFactory operationFactory) throws Exception
serviceName
- the name of the service.operationFactory
- the factory responsible for creating operationsException
Map<Integer,Object> invokeOnPartitions(String serviceName, OperationFactory operationFactory, Collection<Integer> partitions) throws Exception
serviceName
- the name of the serviceoperationFactory
- the factory responsible for creating operationspartitions
- the partitions the operation should be executed on.Exception
boolean send(Operation op, Address target)
op
- the operation to send and execute.target
- the address of that target member.@Deprecated boolean send(Response response, Address target)
InternalOperationService
.response
- the response to send.target
- the address of the target machineCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.