org.rhq.core.pc.standaloneContainer
Class History

java.lang.Object
  extended by org.rhq.core.pc.standaloneContainer.History

public class History
extends Object

Handle command line history

Author:
Heiko W. Rupp

Constructor Summary
History()
           
 
Method Summary
 String handleHistory(String answer)
          Handle processing of the command history.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

History

public History()
Method Detail

handleHistory

public String handleHistory(String answer)
Handle processing of the command history. This gives some csh like commands and records the commands given. Nice side effect is the possibility to write the history to disk and to use this later as input so that testing can be scripted. Commands are:

Parameters:
answer - the input given on the command line
Returns:
a command or '!' if no command substitution from the history was possible.

size

public int size()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.