com.hazelcast.executor.impl
Class DistributedExecutorService

java.lang.Object
  extended by com.hazelcast.executor.impl.DistributedExecutorService
All Implemented Interfaces:
ExecutionTracingService, ManagedService, RemoteService, StatisticsAwareService

public class DistributedExecutorService
extends Object
implements ManagedService, RemoteService, ExecutionTracingService, StatisticsAwareService


Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
DistributedExecutorService()
           
 
Method Summary
 boolean cancel(String uuid, boolean interrupt)
           
 ExecutorServiceProxy createDistributedObject(String name)
          Creates a distributed object.
 void destroyDistributedObject(String name)
          Destroys a distributed object.
 void execute(String name, String uuid, Callable callable, ResponseHandler responseHandler)
           
 Map<String,LocalExecutorStats> getStats()
           
 void init(NodeEngine nodeEngine, Properties properties)
          Initializes this ManagedService
 boolean isOperationExecuting(Address callerAddress, String callerUuid, Object identifier)
           
 boolean isShutdown(String name)
           
 void reset()
          reset this ManagedService back to initial state.
 void shutdown(boolean terminate)
          Shuts down this ManagedService.
 void shutdownExecutor(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

DistributedExecutorService

public DistributedExecutorService()
Method Detail

init

public void init(NodeEngine nodeEngine,
                 Properties properties)
Description copied from interface: ManagedService
Initializes this ManagedService

Specified by:
init in interface ManagedService
Parameters:
nodeEngine - the NodeEngine that this ManagedService belongs to.
properties - the Properties. Can be used to pass settings to the service.

reset

public void reset()
Description copied from interface: ManagedService
reset this ManagedService back to initial state. todo: what is the purpose of reset

Specified by:
reset in interface ManagedService

shutdown

public void shutdown(boolean terminate)
Description copied from interface: ManagedService
Shuts down this ManagedService. todo: what is the purpose of the terminate variable.

Specified by:
shutdown in interface ManagedService
Parameters:
terminate - true to shut down the ManagedService

execute

public void execute(String name,
                    String uuid,
                    Callable callable,
                    ResponseHandler responseHandler)

cancel

public boolean cancel(String uuid,
                      boolean interrupt)

shutdownExecutor

public void shutdownExecutor(String name)

isShutdown

public boolean isShutdown(String name)

createDistributedObject

public ExecutorServiceProxy createDistributedObject(String name)
Description copied from interface: RemoteService
Creates a distributed object.

Specified by:
createDistributedObject in interface RemoteService
Parameters:
name - the name for the created distributed object
Returns:
the created distributed object

destroyDistributedObject

public void destroyDistributedObject(String name)
Description copied from interface: RemoteService
Destroys a distributed object.

Specified by:
destroyDistributedObject in interface RemoteService
Parameters:
name - the name of the distributed object to destroy

isOperationExecuting

public boolean isOperationExecuting(Address callerAddress,
                                    String callerUuid,
                                    Object identifier)
Specified by:
isOperationExecuting in interface ExecutionTracingService

getStats

public Map<String,LocalExecutorStats> getStats()
Specified by:
getStats in interface StatisticsAwareService


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.