org.ow2.jasmine.shelbie.command
Class CommandLine

java.lang.Object
  extended by org.ow2.jasmine.shelbie.command.CommandLine
All Implemented Interfaces:
ICommandLine

public class CommandLine
extends Object
implements ICommandLine

Represent the command line arguments

Author:
Remy Bresson

Field Summary
protected  String clusterName
          Cluster name
protected  String domainName
          Domain name
protected  String machineName
          Host name
protected  String serverName
          Server name
protected  String topologyFile
          Toplogy file path
protected  boolean verbose
          Verbose?
 
Fields inherited from interface org.ow2.jasmine.deployme.api.ICommandLine
COMMAND_OPTION_CLUSTER_NAME, COMMAND_OPTION_DOMAIN_NAME, COMMAND_OPTION_MACHINE_NAME, COMMAND_OPTION_SERVER_NAME, COMMAND_OPTION_TOPOLOGY_FILE, COMMAND_OPTION_VERBOSE, ERROR_CLUSTER_SERVER, ERROR_DOMAIN_SERVER_CLUSTER, ERROR_MACHINE_DOMAIN_SERVER_CLUSTER, ERROR_NO_OPTIONS, ERROR_SERVER_CLUSTER_DOMAIN, ERROR_TOPOLOGY_NOT_SET
 
Constructor Summary
CommandLine()
          Default constructor
 
Method Summary
 void addValue(String argName, String argValue)
          
 void checkCommandLine()
          
 String getClusterName()
          
 String getDomainName()
          
 String getMachineName()
          
 String getServerName()
          
 String getTopologyFile()
          
 boolean getVerbose()
          
 void setClusterName(String clusterName)
           
 void setDomainName(String domainName)
           
 void setMachineName(String machineName)
           
 void setServerName(String serverName)
           
 void setTopologyFile(String topologyFile)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected boolean verbose
Verbose?


topologyFile

protected String topologyFile
Toplogy file path


serverName

protected String serverName
Server name


domainName

protected String domainName
Domain name


machineName

protected String machineName
Host name


clusterName

protected String clusterName
Cluster name

Constructor Detail

CommandLine

public CommandLine()
Default constructor

Method Detail

getVerbose

public boolean getVerbose()

Specified by:
getVerbose in interface ICommandLine

getTopologyFile

public String getTopologyFile()

Specified by:
getTopologyFile in interface ICommandLine

getServerName

public String getServerName()

Specified by:
getServerName in interface ICommandLine

getDomainName

public String getDomainName()

Specified by:
getDomainName in interface ICommandLine

getMachineName

public String getMachineName()

Specified by:
getMachineName in interface ICommandLine

getClusterName

public String getClusterName()

Specified by:
getClusterName in interface ICommandLine

addValue

public void addValue(String argName,
                     String argValue)

Specified by:
addValue in interface ICommandLine

checkCommandLine

public void checkCommandLine()
                      throws IllegalArgumentException

Specified by:
checkCommandLine in interface ICommandLine
Throws:
IllegalArgumentException

setVerbose

public void setVerbose(boolean verbose)
Parameters:
verbose - The verbosity to set

setTopologyFile

public void setTopologyFile(String topologyFile)
Parameters:
topologyFile - The topology file to set

setServerName

public void setServerName(String serverName)
Parameters:
serverName - The server name to set

setDomainName

public void setDomainName(String domainName)
Parameters:
domainName - The domain name to set

setMachineName

public void setMachineName(String machineName)
Parameters:
machineName - The machine name to set

setClusterName

public void setClusterName(String clusterName)
Parameters:
clusterName - The cluster name to set


Copyright © 2012 OW2 Consortium. All Rights Reserved.