Package org.apache.activemq.console
Class CommandContext
java.lang.Object
org.apache.activemq.console.CommandContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the output stream being used by the global formattervoidPrint a java stringvoidPrint a generic array of stringsvoidprint(Collection collection) Print a collection of objectsvoidPrint a generic key value mappingvoidPrint an exception messagevoidPrint help messagesvoidPrint an information messagevoidprintMBean(Collection mbean) Print a Collection format of mbeansvoidprintMBean(Map mbean) Print a Map format of an mbeanvoidprintMBean(AttributeList mbean) Print an AttributeList format of an mbeanvoidprintMBean(ObjectInstance mbean) Print an ObjectInstance format of an mbeanvoidprintMBean(ObjectName mbean) Print an ObjectName format of an mbeanvoidprintMessage(jakarta.jms.Message msg) Print a Message format of a JMS messagevoidprintMessage(Collection msg) Print a collection of JMS messagesvoidprintMessage(Map msg) Print a Map format of a JMS messagevoidprintVersion(String version) Print a version informationvoidsetFormatter(OutputFormatter formatter)
-
Constructor Details
-
CommandContext
public CommandContext()
-
-
Method Details
-
getOutputStream
Retrieve the output stream being used by the global formatter- Returns:
- formatter's output stream
-
printMBean
Print an ObjectInstance format of an mbean- Parameters:
mbean- - mbean to print
-
printMBean
Print an ObjectName format of an mbean- Parameters:
mbean- - mbean to print
-
printMBean
Print an AttributeList format of an mbean- Parameters:
mbean- - mbean to print
-
printMBean
Print a Map format of an mbean- Parameters:
mbean-
-
printMBean
Print a Collection format of mbeans- Parameters:
mbean- - collection of mbeans
-
printMessage
Print a Map format of a JMS message- Parameters:
msg-
-
printMessage
public void printMessage(jakarta.jms.Message msg) Print a Message format of a JMS message- Parameters:
msg- - JMS message to print
-
printMessage
Print a collection of JMS messages- Parameters:
msg- - collection of JMS messages
-
printHelp
Print help messages- Parameters:
helpMsgs- - help messages to print
-
printInfo
Print an information message- Parameters:
info- - information message to print
-
printException
Print an exception message- Parameters:
e- - exception to print
-
printVersion
Print a version information- Parameters:
version- - version info to print
-
print
Print a generic key value mapping- Parameters:
map- to print
-
print
Print a generic array of strings- Parameters:
strings- - string array to print
-
print
Print a collection of objects- Parameters:
collection- - collection to print
-
print
Print a java string- Parameters:
string- - string to print
-
getFormatter
-
setFormatter
-