edu.cmu.emulator.power
Class APCPowerController

java.lang.Object
  extended by edu.cmu.emulator.power.APCPowerController

public class APCPowerController
extends Object


Field Summary
private static boolean debug
           
private static String password
           
private static int TELNET_PORT
           
private static String userName
           
 
Constructor Summary
APCPowerController()
           
 
Method Summary
 void doCmd(String cmd, String controllerIP, int port)
           
 void offImmediate(PowerPortDef ppd)
           
 void offImmediate(String controllerIP, int port)
           
 void onImmediate(PowerPortDef ppd)
           
 void onImmediate(String controllerIP, int port)
           
private  void powerImmediate(String controllerIP, int port, boolean on)
           
protected  void readUntilPrompt(InputStream in)
           
protected  void readUntilString(InputStream in, String s)
           
protected  void selectMenuItem(OutputStream out, InputStream in, int menuItem)
           
protected  void selectMenuItem(OutputStream out, InputStream in, int menuItem, String customString)
           
protected  void write(OutputStream out, String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TELNET_PORT

private static final int TELNET_PORT
See Also:
Constant Field Values

debug

private static final boolean debug
See Also:
Constant Field Values

userName

private static final String userName
See Also:
Constant Field Values

password

private static final String password
See Also:
Constant Field Values
Constructor Detail

APCPowerController

public APCPowerController()
Method Detail

onImmediate

public void onImmediate(PowerPortDef ppd)

offImmediate

public void offImmediate(PowerPortDef ppd)

onImmediate

public void onImmediate(String controllerIP,
                        int port)

offImmediate

public void offImmediate(String controllerIP,
                         int port)

powerImmediate

private void powerImmediate(String controllerIP,
                            int port,
                            boolean on)

selectMenuItem

protected void selectMenuItem(OutputStream out,
                              InputStream in,
                              int menuItem,
                              String customString)
                       throws IOException
Throws:
IOException

selectMenuItem

protected void selectMenuItem(OutputStream out,
                              InputStream in,
                              int menuItem)
                       throws IOException
Throws:
IOException

write

protected void write(OutputStream out,
                     String msg)
              throws IOException
Throws:
IOException

readUntilPrompt

protected void readUntilPrompt(InputStream in)
                        throws IOException
Throws:
IOException

readUntilString

protected void readUntilString(InputStream in,
                               String s)
                        throws IOException
Throws:
IOException

doCmd

public void doCmd(String cmd,
                  String controllerIP,
                  int port)


Copyright © 2013. All Rights Reserved.