public class PsCommandImpl extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
m_context |
| Constructor and Description |
|---|
PsCommandImpl(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String s,
PrintStream out,
PrintStream err)
Executes the command using the supplied command line, output
print stream, and error print stream.
|
String |
getName()
Returns the name of the command that is implemented by the
interface.
|
String |
getShortDescription()
Returns a short description of the command; this description
should be as short as possible.
|
String |
getStateString(int i) |
String |
getUsage()
Returns the usage string for the command.
|
protected void |
printBundleList(org.osgi.framework.Bundle[] bundles,
org.osgi.service.startlevel.StartLevel startLevel,
PrintStream out,
boolean showLoc,
boolean showSymbolic,
boolean showUpdate) |
public String getName()
Commandpublic String getUsage()
Command
install [ ...]
public String getShortDescription()
CommandgetShortDescription in interface Commandpublic void execute(String s, PrintStream out, PrintStream err)
Commandprotected void printBundleList(org.osgi.framework.Bundle[] bundles,
org.osgi.service.startlevel.StartLevel startLevel,
PrintStream out,
boolean showLoc,
boolean showSymbolic,
boolean showUpdate)
public String getStateString(int i)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.