org.ow2.jasmine.probe.shell
Class TargetCreateCommand

java.lang.Object
  extended by org.ow2.jasmine.probe.shell.JasmineProbeCommand
      extended by org.ow2.jasmine.probe.shell.TargetCreateCommand
All Implemented Interfaces:
org.apache.felix.shell.Command

public class TargetCreateCommand
extends JasmineProbeCommand
implements org.apache.felix.shell.Command

Implements target-create command.

Author:
danesa

Constructor Summary
TargetCreateCommand()
          Default Constructor
 
Method Summary
 void execute(java.lang.String line, java.io.PrintStream out, java.io.PrintStream err)
          Executes the command using the supplied command line, output print stream, and error print stream.
 java.lang.String getName()
          Returns the name of the command that is implemented by the interface.
 org.ow2.jasmine.probe.JasmineProbeManager getProbeManager()
           
 java.lang.String getProperties()
          By default, there are no properties.
 java.lang.String getRequiredOptions()
          To be extended by commands having required options
 java.lang.String getShortDescription()
          Returns a short description of the command; this description should be as short as possible.
 
Methods inherited from class org.ow2.jasmine.probe.shell.JasmineProbeCommand
createIndicator, getParams, getUsage, parseOptions, parseProperties, setParams, validParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.felix.shell.Command
getUsage
 

Constructor Detail

TargetCreateCommand

public TargetCreateCommand()
Default Constructor

Method Detail

getName

public java.lang.String getName()
Returns the name of the command that is implemented by the interface. The command name should not contain whitespace and should also be unique.

Specified by:
getName in interface org.apache.felix.shell.Command
Specified by:
getName in class JasmineProbeCommand
Returns:
the name of the command.

getShortDescription

public java.lang.String getShortDescription()
Returns a short description of the command; this description should be as short as possible. This information is used when generating the command help information.

Specified by:
getShortDescription in interface org.apache.felix.shell.Command
Returns:
a short description of the command.

getProperties

public java.lang.String getProperties()
Description copied from class: JasmineProbeCommand
By default, there are no properties. To be extended by the sub-class corresponding to commands with properties.

Overrides:
getProperties in class JasmineProbeCommand
Returns:

getRequiredOptions

public java.lang.String getRequiredOptions()
Description copied from class: JasmineProbeCommand
To be extended by commands having required options

Overrides:
getRequiredOptions in class JasmineProbeCommand
Returns:

getProbeManager

public org.ow2.jasmine.probe.JasmineProbeManager getProbeManager()
Specified by:
getProbeManager in class JasmineProbeCommand

execute

public void execute(java.lang.String line,
                    java.io.PrintStream out,
                    java.io.PrintStream err)
Executes the command using the supplied command line, output print stream, and error print stream.

Specified by:
execute in interface org.apache.felix.shell.Command
Parameters:
line - the complete command line, including the command name.
out - the print stream to use for standard output.
err - the print stream to use for standard error.


Copyright © 2011 OW2 Consortium. All Rights Reserved.