org.rhq.enterprise.agent
Class AgentPromptInfo

java.lang.Object
  extended by 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

Constructor Summary
AgentPromptInfo(AgentMain agent)
           
 
Method Summary
 String readLine()
           
 String readLineNoEcho()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentPromptInfo

public AgentPromptInfo(AgentMain agent)
Method Detail

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.