edu.cmu.emulator.power
Class APCPowerController
java.lang.Object
edu.cmu.emulator.power.APCPowerController
public class APCPowerController
- extends Object
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 |
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
APCPowerController
public APCPowerController()
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.