org.apache.felix.ipojo.arch
Class ArchCommandImpl

java.lang.Object
  extended by org.apache.felix.ipojo.arch.ArchCommandImpl
All Implemented Interfaces:
org.apache.felix.shell.Command

public class ArchCommandImpl
extends java.lang.Object
implements org.apache.felix.shell.Command

Implementation of the arch command printing the actual architecture.

Author:
Felix Project Team

Constructor Summary
ArchCommandImpl()
           
 
Method Summary
 void execute(java.lang.String line, java.io.PrintStream out, java.io.PrintStream err)
          Executes the arch command.
 java.lang.String getName()
          Get the command name.
 java.lang.String getShortDescription()
          Gets a small description.
 java.lang.String getUsage()
          Gets help message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchCommandImpl

public ArchCommandImpl()
Method Detail

getName

public java.lang.String getName()
Get the command name.

Specified by:
getName in interface org.apache.felix.shell.Command
Returns:
the command name (arch)
See Also:
Command.getName()

getUsage

public java.lang.String getUsage()
Gets help message.

Specified by:
getUsage in interface org.apache.felix.shell.Command
Returns:
the command usage.
See Also:
Command.getUsage()

getShortDescription

public java.lang.String getShortDescription()
Gets a small description.

Specified by:
getShortDescription in interface org.apache.felix.shell.Command
Returns:
get a description.
See Also:
Command.getShortDescription()

execute

public void execute(java.lang.String line,
                    java.io.PrintStream out,
                    java.io.PrintStream err)
Executes the arch command.

Specified by:
execute in interface org.apache.felix.shell.Command
Parameters:
line - : command line
out - : the default output stream
err - : the error output stream
See Also:
Command.execute(java.lang.String, java.io.PrintStream, java.io.PrintStream)