org.rhq.enterprise.agent
Class AgentPromptInfo
java.lang.Object
org.rhq.enterprise.agent.AgentPromptInfo
- All Implemented Interfaces:
- PromptInput
public class AgentPromptInfo
- extends Object
- implements PromptInput
Provides a PromptInput implementation that the agent can use to obtain input from the native system. Note
that if the native libraries are not available or have been disabled, this will effectively fallback to using the
Java-only mechanism to read input and will therefore always echo the input (i.e. calling readLineNoEcho()
will do the same as readLine()).
- Author:
- John Mazzitelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentPromptInfo
public AgentPromptInfo(AgentMain agent)
readLine
public String readLine()
throws IOException
- Specified by:
readLine in interface PromptInput
- Throws:
IOException
readLineNoEcho
public String readLineNoEcho()
throws IOException
- Specified by:
readLineNoEcho in interface PromptInput
- Throws:
IOException
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.