Class CommandLaunchInfo
- java.lang.Object
-
- org.glassfish.appclient.client.acc.CommandLaunchInfo
-
public class CommandLaunchInfo extends Object
Encapsulates all the details of handling the ACC agent arguments.The agent accepts agent arguments, mostly to find out:
- what type of client the user specified (JAR, directory, class, or class file) and the path or name for the file, and
- the appclient command arguments from the appclient command.
- Author:
- tjquinn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandLaunchInfo.ClientLaunchType
Represents the types of client launches.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppcPath()
CommandLaunchInfo.ClientLaunchType
getClientLaunchType()
Returns which type of launch the user has triggered given the combination of options he or she specified.String
getClientName()
Returns the name part of the client selection expression.static CommandLaunchInfo
newInstance(AgentArguments agentArgs)
-
-
-
Method Detail
-
newInstance
public static CommandLaunchInfo newInstance(AgentArguments agentArgs) throws UserError
- Throws:
UserError
-
getClientName
public String getClientName()
Returns the name part of the client selection expression. This can be the file path to a JAR, a file path to a directory, the fully-qualified class name for the main class, or the file path to a .class file.- Returns:
- the name
-
getClientLaunchType
public CommandLaunchInfo.ClientLaunchType getClientLaunchType()
Returns which type of launch the user has triggered given the combination of options he or she specified.- Returns:
-
getAppcPath
public String getAppcPath()
-
-