Package org.apache.activemq.console
Class CommandContext
- java.lang.Object
-
- org.apache.activemq.console.CommandContext
-
public final class CommandContext extends Object
-
-
Constructor Summary
Constructors Constructor Description CommandContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputFormatter
getFormatter()
OutputStream
getOutputStream()
Retrieve the output stream being used by the global formattervoid
print(String string)
Print a java stringvoid
print(String[] strings)
Print a generic array of stringsvoid
print(Collection collection)
Print a collection of objectsvoid
print(Map map)
Print a generic key value mappingvoid
printException(Exception e)
Print an exception messagevoid
printHelp(String[] helpMsgs)
Print help messagesvoid
printInfo(String info)
Print an information messagevoid
printMBean(Collection mbean)
Print a Collection format of mbeansvoid
printMBean(Map mbean)
Print a Map format of an mbeanvoid
printMBean(AttributeList mbean)
Print an AttributeList format of an mbeanvoid
printMBean(ObjectInstance mbean)
Print an ObjectInstance format of an mbeanvoid
printMBean(ObjectName mbean)
Print an ObjectName format of an mbeanvoid
printMessage(Collection msg)
Print a collection of JMS messagesvoid
printMessage(Map msg)
Print a Map format of a JMS messagevoid
printMessage(Message msg)
Print a Message format of a JMS messagevoid
printVersion(String version)
Print a version informationvoid
setFormatter(OutputFormatter formatter)
-
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream()
Retrieve the output stream being used by the global formatter- Returns:
- formatter's output stream
-
printMBean
public void printMBean(ObjectInstance mbean)
Print an ObjectInstance format of an mbean- Parameters:
mbean
- - mbean to print
-
printMBean
public void printMBean(ObjectName mbean)
Print an ObjectName format of an mbean- Parameters:
mbean
- - mbean to print
-
printMBean
public void printMBean(AttributeList mbean)
Print an AttributeList format of an mbean- Parameters:
mbean
- - mbean to print
-
printMBean
public void printMBean(Map mbean)
Print a Map format of an mbean- Parameters:
mbean
-
-
printMBean
public void printMBean(Collection mbean)
Print a Collection format of mbeans- Parameters:
mbean
- - collection of mbeans
-
printMessage
public void printMessage(Map msg)
Print a Map format of a JMS message- Parameters:
msg
-
-
printMessage
public void printMessage(Message msg)
Print a Message format of a JMS message- Parameters:
msg
- - JMS message to print
-
printMessage
public void printMessage(Collection msg)
Print a collection of JMS messages- Parameters:
msg
- - collection of JMS messages
-
printHelp
public void printHelp(String[] helpMsgs)
Print help messages- Parameters:
helpMsgs
- - help messages to print
-
printInfo
public void printInfo(String info)
Print an information message- Parameters:
info
- - information message to print
-
printException
public void printException(Exception e)
Print an exception message- Parameters:
e
- - exception to print
-
printVersion
public void printVersion(String version)
Print a version information- Parameters:
version
- - version info to print
-
print
public void print(Map map)
Print a generic key value mapping- Parameters:
map
- to print
-
print
public void print(String[] strings)
Print a generic array of strings- Parameters:
strings
- - string array to print
-
print
public void print(Collection collection)
Print a collection of objects- Parameters:
collection
- - collection to print
-
print
public void print(String string)
Print a java string- Parameters:
string
- - string to print
-
getFormatter
public OutputFormatter getFormatter()
-
setFormatter
public void setFormatter(OutputFormatter formatter)
-
-