public class ApplicationMaster extends Object implements AMRMClientAsync.CallbackHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PORT
Default port range.
|
static String |
DELIM
Delimiter char.
|
static Logger |
log |
Constructor and Description |
---|
ApplicationMaster(String ignitePath,
ClusterProperties props) |
Modifier and Type | Method and Description |
---|---|
Map<ContainerId,IgniteContainer> |
getContainers()
Deprecated.
|
float |
getProgress() |
void |
init() |
static void |
main(String[] args) |
void |
onContainersAllocated(List<Container> conts) |
void |
onContainersCompleted(List<ContainerStatus> statuses) |
void |
onError(Throwable t) |
void |
onNodesUpdated(List<NodeReport> updated) |
void |
onShutdownRequest() |
void |
run()
Runs application master.
|
void |
setFs(FileSystem fs)
Sets file system.
|
void |
setNmClient(NMClient nmClient)
Sets NMClient.
|
void |
setRmClient(AMRMClientAsync<AMRMClient.ContainerRequest> rmClient)
Sets RMClient
|
void |
setSchedulerTimeout(long schedulerTimeout)
Sets scheduler timeout.
|
public static final Logger log
public static final String DEFAULT_PORT
public static final String DELIM
public ApplicationMaster(String ignitePath, ClusterProperties props) throws Exception
ignitePath
- Hdfs path to ignite.props
- Cluster properties.Exception
public void onContainersAllocated(List<Container> conts)
onContainersAllocated
in interface AMRMClientAsync.CallbackHandler
public void onContainersCompleted(List<ContainerStatus> statuses)
onContainersCompleted
in interface AMRMClientAsync.CallbackHandler
public void onNodesUpdated(List<NodeReport> updated)
onNodesUpdated
in interface AMRMClientAsync.CallbackHandler
public void onShutdownRequest()
onShutdownRequest
in interface AMRMClientAsync.CallbackHandler
public void onError(Throwable t)
onError
in interface AMRMClientAsync.CallbackHandler
public float getProgress()
getProgress
in interface AMRMClientAsync.CallbackHandler
public static void main(String[] args) throws Exception
args
- Args.Exception
- If failed.public void init() throws IOException
IOException
public void setNmClient(NMClient nmClient)
nmClient
- NMClient.public void setRmClient(AMRMClientAsync<AMRMClient.ContainerRequest> rmClient)
rmClient
- AMRMClientAsync.public void setSchedulerTimeout(long schedulerTimeout)
schedulerTimeout
- Scheduler timeout.public void setFs(FileSystem fs)
fs
- File system.@Deprecated public Map<ContainerId,IgniteContainer> getContainers()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019