public class MapReduceService extends Object implements ManagedService, RemoteService
JobTracker
instances
and their corresponding JobSupervisor
s.Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
The service name to retrieve an instance of the MapReduceService
|
Constructor and Description |
---|
MapReduceService(NodeEngine nodeEngine) |
public static final String SERVICE_NAME
public MapReduceService(NodeEngine nodeEngine)
public JobTracker getJobTracker(String name)
public JobSupervisor getJobSupervisor(String name, String jobId)
public boolean registerJobSupervisorCancellation(String name, String jobId, Address jobOwner)
public boolean unregisterJobSupervisorCancellation(String name, String jobId)
public JobSupervisor createJobSupervisor(JobTaskConfiguration configuration)
public boolean destroyJobSupervisor(JobSupervisor supervisor)
public ExecutorService getExecutorService(String name)
public void init(NodeEngine nodeEngine, Properties properties)
ManagedService
init
in interface ManagedService
nodeEngine
- the NodeEngine this ManagedService belongs to.properties
- the Properties. Can be used to pass settings to the service.public void reset()
ManagedService
reset
in interface ManagedService
public void shutdown(boolean terminate)
ManagedService
shutdown
in interface ManagedService
public DistributedObject createDistributedObject(String objectName)
createDistributedObject
in interface RemoteService
public void destroyDistributedObject(String objectName)
destroyDistributedObject
in interface RemoteService
public boolean checkAssignedMembersAvailable(Collection<Address> assignedMembers)
public <R> R processRequest(Address address, ProcessingOperation processingOperation) throws ExecutionException, InterruptedException
public void sendNotification(Address address, MapReduceNotification notification)
public final Address getLocalAddress()
public NodeEngine getNodeEngine()
public void dispatchEvent(MapReduceNotification notification)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.