|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.console.CommandContext
public final class CommandContext
Constructor Summary | |
---|---|
CommandContext()
|
Method Summary | |
---|---|
OutputFormatter |
getFormatter()
|
OutputStream |
getOutputStream()
Retrieve the output stream being used by the global formatter |
void |
print(Collection collection)
Print a collection of objects |
void |
print(Map map)
Print a generic key value mapping |
void |
print(String string)
Print a java string |
void |
print(String[] strings)
Print a generic array of strings |
void |
printException(Exception e)
Print an exception message |
void |
printHelp(String[] helpMsgs)
Print help messages |
void |
printInfo(String info)
Print an information message |
void |
printMBean(AttributeList mbean)
Print an AttributeList format of an mbean |
void |
printMBean(Collection mbean)
Print a Collection format of mbeans |
void |
printMBean(Map mbean)
Print a Map format of an mbean |
void |
printMBean(ObjectInstance mbean)
Print an ObjectInstance format of an mbean |
void |
printMBean(ObjectName mbean)
Print an ObjectName format of an mbean |
void |
printMessage(Collection msg)
Print a collection of JMS messages |
void |
printMessage(Map msg)
Print a Map format of a JMS message |
void |
printMessage(Message msg)
Print a Message format of a JMS message |
void |
printVersion(String version)
Print a version information |
void |
setFormatter(OutputFormatter formatter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandContext()
Method Detail |
---|
public OutputStream getOutputStream()
public void printMBean(ObjectInstance mbean)
mbean
- - mbean to printpublic void printMBean(ObjectName mbean)
mbean
- - mbean to printpublic void printMBean(AttributeList mbean)
mbean
- - mbean to printpublic void printMBean(Map mbean)
mbean
- public void printMBean(Collection mbean)
mbean
- - collection of mbeanspublic void printMessage(Map msg)
msg
- public void printMessage(Message msg)
msg
- - JMS message to printpublic void printMessage(Collection msg)
msg
- - collection of JMS messagespublic void printHelp(String[] helpMsgs)
helpMsgs
- - help messages to printpublic void printInfo(String info)
info
- - information message to printpublic void printException(Exception e)
e
- - exception to printpublic void printVersion(String version)
version
- - version info to printpublic void print(Map map)
map
- to printpublic void print(String[] strings)
strings
- - string array to printpublic void print(Collection collection)
collection
- - collection to printpublic void print(String string)
string
- - string to printpublic OutputFormatter getFormatter()
public void setFormatter(OutputFormatter formatter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |