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 service belongs toproperties
- the Properties (can be used to pass settings to the service)public void reset()
ManagedService
TODO: what is the purpose of reset
reset
in interface ManagedService
public void shutdown(boolean terminate)
ManagedService
TODO: what is the purpose of the terminate variable
shutdown
in interface ManagedService
terminate
- true
to shut down this servicepublic 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 © 2020 Hazelcast, Inc.. All Rights Reserved.