edu.cmu.emulator.sched
Class PowerController

java.lang.Object
  extended by edu.cmu.emulator.sched.PowerController

public class PowerController
extends Object


Field Summary
private  APCPowerController apcPowerController
           
private  String bcastIP
           
private  BootNode bootNode
           
private static int haltMillis
           
private  String ipPrefix
           
private static int MONITOR_PORT
           
private  HashMap<Integer,PowerPortDef> nodePowerPortMap
           
private static int powerOffPauseMillis
           
private static int powerOnPauseMillis
           
private  Runtime runtime
           
private  SchedClient schedClient
           
 
Constructor Summary
PowerController(String userToken, String schedServerHost, String nodePowerPortMap, String ipPrefix, String bcastIP, String macMap)
           
 
Method Summary
static void displayCommands()
           
 void execCommand(String command, int node)
           
 void halt(int node)
           
 void halt(int[] nodes)
           
 void haltAll()
           
 void initNodePowerPortMap(String mapFile)
           
protected  boolean isNodeUp(int node)
           
protected  boolean isNodeUp(String nodeIP)
           
static void main(String[] args)
           
protected  void readNodePowerPortMapLine(String line)
           
 void reboot(int node)
           
 void rebootAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PowerController

public PowerController(String userToken,
                       String schedServerHost,
                       String nodePowerPortMap,
                       String ipPrefix,
                       String bcastIP,
                       String macMap)
                throws IOException
Throws:
IOException
Method Detail

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.