public class RmQueriedNodepool extends Object implements Serializable
getFreeMachines
and getVirtualMachines
calls, these
two arrays together show the available memory that is free and schedulable. For example, if
a 48GB machine has a 15GB process scheduled on it (assuming a share quantum of 15GB), the
response will show one 30GB virtual machine, and the expected count of 48GB machines will be
reduced by one.Constructor and Description |
---|
RmQueriedNodepool()
Used by RM only.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getAllMachines() |
int |
getDead() |
int[] |
getFreeMachines() |
String |
getName() |
int |
getOffline() |
int |
getOnline() |
int[] |
getOnlineMachines() |
int |
getSharesAvailable() |
int |
getSharesFree() |
int[] |
getVirtualMachines() |
void |
setAllMachines(int[] allMachines) |
void |
setDead(int dead) |
void |
setFreeMachines(int[] freeMachines) |
void |
setName(String name) |
void |
setOffline(int offline) |
void |
setOnline(int online) |
void |
setOnlineMachines(int[] onlineMachines) |
void |
setSharesAvailable(int sharesAvailable) |
void |
setSharesFree(int sharesFree) |
void |
setVirtualMachines(int[] virtualMachines) |
String |
toString() |
public String getName()
public void setName(String name)
public int getOnline()
public void setOnline(int online)
public int getDead()
public void setDead(int dead)
public int getOffline()
public void setOffline(int offline)
public int getSharesAvailable()
public void setSharesAvailable(int sharesAvailable)
public int getSharesFree()
public void setSharesFree(int sharesFree)
public int[] getAllMachines()
public void setAllMachines(int[] allMachines)
public int[] getOnlineMachines()
public void setOnlineMachines(int[] onlineMachines)
public int[] getFreeMachines()
public void setFreeMachines(int[] freeMachines)
public int[] getVirtualMachines()
public void setVirtualMachines(int[] virtualMachines)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.