public class InstanceManager extends Object
| Constructor and Description |
|---|
InstanceManager()
Creates an instance manager, using the global configuration value for maximum interval between heartbeats
where a task manager is still considered alive.
|
InstanceManager(long heartbeatTimeout) |
InstanceManager(long heartbeatTimeout,
long cleanupInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstanceListener(InstanceListener listener) |
Map<InstanceID,Instance> |
getAllRegisteredInstances() |
long |
getHeartbeatTimeout() |
int |
getNumberOfRegisteredTaskManagers() |
int |
getTotalNumberOfSlots() |
void |
killTaskManagers()
This method is only used by the Flink YARN client to self-destruct a Flink cluster
by stopping the JVMs of the TaskManagers.
|
InstanceID |
registerTaskManager(InstanceConnectionInfo instanceConnectionInfo,
HardwareDescription resources,
int numberOfSlots) |
void |
removeInstanceListener(InstanceListener listener) |
boolean |
reportHeartBeat(InstanceID instanceId) |
void |
shutdown() |
public InstanceManager()
public InstanceManager(long heartbeatTimeout)
public InstanceManager(long heartbeatTimeout,
long cleanupInterval)
public long getHeartbeatTimeout()
public void killTaskManagers()
public void shutdown()
public boolean reportHeartBeat(InstanceID instanceId)
public InstanceID registerTaskManager(InstanceConnectionInfo instanceConnectionInfo, HardwareDescription resources, int numberOfSlots)
public int getNumberOfRegisteredTaskManagers()
public int getTotalNumberOfSlots()
public Map<InstanceID,Instance> getAllRegisteredInstances()
public void addInstanceListener(InstanceListener listener)
public void removeInstanceListener(InstanceListener listener)
Copyright © 2015 The Apache Software Foundation. All rights reserved.