Package org.jboss.as.cli
Interface CommandHistory
-
public interface CommandHistoryRepresents the history of commands and operations.- Author:
- Alexey Loubyansky
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>asList()Returns the history as a list of strings.voidclear()Clears history.intgetMaxSize()The maximum length of the history log.booleanisUseHistory()Returns a boolean indicating whether the history is enabled or not.voidsetUseHistory(boolean useHistory)Enables or disables history.
-
-
-
Method Detail
-
asList
List<String> asList()
Returns the history as a list of strings.- Returns:
- history as a list of strings.
-
isUseHistory
boolean isUseHistory()
Returns a boolean indicating whether the history is enabled or not.- Returns:
- true in case the history is enabled, false otherwise.
-
setUseHistory
void setUseHistory(boolean useHistory)
Enables or disables history.- Parameters:
useHistory- true enables history, false disables it.
-
clear
void clear()
Clears history.
-
getMaxSize
int getMaxSize()
The maximum length of the history log.- Returns:
- maximum length of the history log
-
-