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 |
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 that 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
terminate
- true to shut down the ManagedServicepublic DistributedObject createDistributedObject(String objectName)
RemoteService
createDistributedObject
in interface RemoteService
objectName
- the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteService
destroyDistributedObject
in interface RemoteService
objectName
- the name of the distributed object to destroypublic 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 © 2016 Hazelcast, Inc.. All Rights Reserved.