public class DefaultInstanceManager extends Object implements InstanceManager
| Constructor and Description |
|---|
DefaultInstanceManager()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
getInstanceByName(String name) |
Map<InstanceConnectionInfo,Instance> |
getInstances() |
NetworkTopology |
getNetworkTopology(JobID jobID) |
int |
getNumberOfSlots() |
int |
getNumberOfTaskTrackers() |
void |
registerTaskManager(InstanceConnectionInfo instanceConnectionInfo,
HardwareDescription hardwareDescription,
int numberOfSlots) |
void |
releaseAllocatedResource(AllocatedResource allocatedResource) |
void |
reportHeartBeat(InstanceConnectionInfo instanceConnectionInfo) |
void |
requestInstance(JobID jobID,
Configuration conf,
int requiredSlots) |
void |
setInstanceListener(InstanceListener instanceListener) |
void |
shutdown() |
public void shutdown()
shutdown in interface InstanceManagerpublic void releaseAllocatedResource(AllocatedResource allocatedResource) throws InstanceException
releaseAllocatedResource in interface InstanceManagerInstanceExceptionpublic void reportHeartBeat(InstanceConnectionInfo instanceConnectionInfo)
reportHeartBeat in interface InstanceManagerpublic void registerTaskManager(InstanceConnectionInfo instanceConnectionInfo, HardwareDescription hardwareDescription, int numberOfSlots)
registerTaskManager in interface InstanceManagerpublic void requestInstance(JobID jobID, Configuration conf, int requiredSlots) throws InstanceException
requestInstance in interface InstanceManagerInstanceExceptionpublic NetworkTopology getNetworkTopology(JobID jobID)
getNetworkTopology in interface InstanceManagerpublic void setInstanceListener(InstanceListener instanceListener)
setInstanceListener in interface InstanceManagerpublic Instance getInstanceByName(String name)
getInstanceByName in interface InstanceManagerpublic int getNumberOfTaskTrackers()
getNumberOfTaskTrackers in interface InstanceManagerpublic int getNumberOfSlots()
getNumberOfSlots in interface InstanceManagerpublic Map<InstanceConnectionInfo,Instance> getInstances()
getInstances in interface InstanceManagerCopyright © 2014 The Apache Software Foundation. All rights reserved.