Package org.jrd.backend.data.cli
Class Cli
- java.lang.Object
-
- org.jrd.backend.data.cli.Cli
-
public class Cli extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringclassloaderprivate AgentConfigcurrentAgentprivate java.util.List<java.lang.String>filteredArgsprivate booleanisBootprivate booleanisHexprivate booleanisRevertprivate booleanisVerboseprivate Savingsaving
-
Constructor Summary
Constructors Constructor Description Cli(java.lang.String[] orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeCli()java.util.List<java.lang.String>getFilteredArgs()PluginManagergetPluginManager()private VmInfogetVmInfo(java.lang.String param)VmManagergetVmManager()booleanisGui()booleanisHex()private java.util.List<java.lang.String>prefilterArgs(java.lang.String[] originalArgs)private voidprintCompletion(java.util.List<java.lang.String> filteredArgsLocal)private voidprintConfig()private voidprintHelp()private voidprintVersion()private intreadAgentParams(java.lang.String[] originalArgs, java.util.List<java.lang.String> agentArgs, int i)private voidsetDefaultAgentConfig(java.util.List<java.lang.String> args, java.util.List<java.lang.String> agentArgs)booleanshouldBeVerbose()
-
-
-
Field Detail
-
filteredArgs
private final java.util.List<java.lang.String> filteredArgs
-
saving
private Saving saving
-
isVerbose
private boolean isVerbose
-
isHex
private boolean isHex
-
isRevert
private boolean isRevert
-
isBoot
private boolean isBoot
-
classloader
private java.lang.String classloader
-
currentAgent
private AgentConfig currentAgent
-
-
Method Detail
-
shouldBeVerbose
public boolean shouldBeVerbose()
-
isGui
public boolean isGui()
-
isHex
public boolean isHex()
-
prefilterArgs
private java.util.List<java.lang.String> prefilterArgs(java.lang.String[] originalArgs)
-
setDefaultAgentConfig
private void setDefaultAgentConfig(java.util.List<java.lang.String> args, java.util.List<java.lang.String> agentArgs)
-
readAgentParams
private int readAgentParams(java.lang.String[] originalArgs, java.util.List<java.lang.String> agentArgs, int i)
-
consumeCli
public void consumeCli() throws java.lang.Exception- Throws:
java.lang.Exception
-
printCompletion
private void printCompletion(java.util.List<java.lang.String> filteredArgsLocal) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException- Throws:
java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
printConfig
private void printConfig() throws java.io.IOException- Throws:
java.io.IOException
-
printVersion
private void printVersion()
-
printHelp
private void printHelp()
-
getVmInfo
private VmInfo getVmInfo(java.lang.String param)
-
getFilteredArgs
public java.util.List<java.lang.String> getFilteredArgs()
-
getVmManager
public VmManager getVmManager()
-
getPluginManager
public PluginManager getPluginManager()
-
-