public class RmQueriedMachine extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
blacklisted |
(package private) long |
memory |
(package private) String |
name |
(package private) String |
nodepoolId |
(package private) boolean |
online |
(package private) int |
order |
(package private) boolean |
responsive |
(package private) List<RmQueriedShare> |
shares |
Constructor and Description |
---|
RmQueriedMachine(String name,
String nodepoolId,
long memory,
int order,
boolean blacklisted) |
Modifier and Type | Method and Description |
---|---|
void |
addShare(RmQueriedShare rqs) |
String |
getId()
Returns the name of the machin.
|
long |
getMemory()
Returns the amount of RAM in KB (kilobytes) on the machine.
|
int |
getShareOrder()
Returns the share order of the machine.
|
List<RmQueriedShare> |
getShares()
Return the list of shares scheduled to this host.
|
boolean |
isBlacklisted()
Returns whether the machine is blacklisted.
|
boolean |
isOnline()
Returns whether the machine is varied online.
|
boolean |
isResponsive()
Indicates whether the machine is sending heartbeats.
|
void |
setOffline() |
void |
setUnresponsive() |
String |
toString() |
String name
String nodepoolId
long memory
int order
boolean blacklisted
boolean online
boolean responsive
List<RmQueriedShare> shares
public void setOffline()
public void setUnresponsive()
public void addShare(RmQueriedShare rqs)
public List<RmQueriedShare> getShares()
shares
.public String getId()
public long getMemory()
public int getShareOrder()
public boolean isBlacklisted()
public boolean isOnline()
public boolean isResponsive()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.