edu.cmu.emulator.sched
Class PowerController
java.lang.Object
edu.cmu.emulator.sched.PowerController
public class PowerController
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
apcPowerController
private APCPowerController apcPowerController
schedClient
private SchedClient schedClient
bootNode
private BootNode bootNode
bcastIP
private String bcastIP
ipPrefix
private String ipPrefix
nodePowerPortMap
private HashMap<Integer,PowerPortDef> nodePowerPortMap
runtime
private Runtime runtime
haltMillis
private static final int haltMillis
- See Also:
- Constant Field Values
powerOffPauseMillis
private static final int powerOffPauseMillis
- See Also:
- Constant Field Values
powerOnPauseMillis
private static final int powerOnPauseMillis
- See Also:
- Constant Field Values
MONITOR_PORT
private static final int MONITOR_PORT
- See Also:
- Constant Field Values
PowerController
public PowerController(String userToken,
String schedServerHost,
String nodePowerPortMap,
String ipPrefix,
String bcastIP,
String macMap)
throws IOException
- Throws:
IOException
initNodePowerPortMap
public void initNodePowerPortMap(String mapFile)
throws IOException
- Throws:
IOException
readNodePowerPortMapLine
protected void readNodePowerPortMapLine(String line)
displayCommands
public static void displayCommands()
haltAll
public void haltAll()
halt
public void halt(int node)
halt
public void halt(int[] nodes)
reboot
public void reboot(int node)
rebootAll
public void rebootAll()
isNodeUp
protected boolean isNodeUp(int node)
isNodeUp
protected boolean isNodeUp(String nodeIP)
execCommand
public void execCommand(String command,
int node)
main
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.