public class MapReduceService extends Object implements ManagedService, RemoteService
JobTracker instances
and their corresponding JobSupervisors.| 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)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine that this service belongs toproperties - the Properties (can be used to pass settings to the service)public void reset()
ManagedServiceTODO: what is the purpose of reset
reset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceTODO: what is the purpose of the terminate variable
shutdown in interface ManagedServiceterminate - true to shut down this servicepublic DistributedObject createDistributedObject(String objectName)
RemoteServicecreateDistributedObject in interface RemoteServiceobjectName - the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteServicedestroyDistributedObject in interface RemoteServiceobjectName - 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.