public class PsCommandImpl extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
LOCATION_SWITCH |
protected org.osgi.framework.BundleContext |
m_context |
private static java.lang.String |
SYMBOLIC_NAME_SWITCH |
private static java.lang.String |
UPDATE_LOCATION_SWITCH |
| Constructor and Description |
|---|
PsCommandImpl(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.String s,
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.
|
java.lang.String |
getShortDescription()
Returns a short description of the command; this description
should be as short as possible.
|
java.lang.String |
getStateString(int i) |
java.lang.String |
getUsage()
Returns the usage string for the command.
|
protected void |
printBundleList(org.osgi.framework.Bundle[] bundles,
org.osgi.service.startlevel.StartLevel startLevel,
java.io.PrintStream out,
boolean showLoc,
boolean showSymbolic,
boolean showUpdate) |
private static final java.lang.String LOCATION_SWITCH
private static final java.lang.String SYMBOLIC_NAME_SWITCH
private static final java.lang.String UPDATE_LOCATION_SWITCH
protected final org.osgi.framework.BundleContext m_context
public java.lang.String getName()
Commandpublic java.lang.String getUsage()
Command
install [ ...]
public java.lang.String getShortDescription()
CommandgetShortDescription in interface Commandpublic void execute(java.lang.String s,
java.io.PrintStream out,
java.io.PrintStream err)
Commandprotected void printBundleList(org.osgi.framework.Bundle[] bundles,
org.osgi.service.startlevel.StartLevel startLevel,
java.io.PrintStream out,
boolean showLoc,
boolean showSymbolic,
boolean showUpdate)
public java.lang.String getStateString(int i)