org.apache.activemq.console.formatter
Class CommandShellOutputFormatter

java.lang.Object
  extended by org.apache.activemq.console.formatter.CommandShellOutputFormatter
All Implemented Interfaces:
OutputFormatter

public class CommandShellOutputFormatter
extends Object
implements OutputFormatter


Constructor Summary
CommandShellOutputFormatter(OutputStream out)
           
 
Method Summary
 OutputStream getOutputStream()
          Retrieve the output stream being used by the 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 of mbean
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandShellOutputFormatter

public CommandShellOutputFormatter(OutputStream out)
Method Detail

getOutputStream

public OutputStream getOutputStream()
Retrieve the output stream being used by the formatter

Specified by:
getOutputStream in interface OutputFormatter
Returns:

printMBean

public void printMBean(ObjectInstance mbean)
Print an ObjectInstance format of an mbean

Specified by:
printMBean in interface OutputFormatter
Parameters:
mbean - - mbean to print

printMBean

public void printMBean(ObjectName mbean)
Print an ObjectName format of an mbean

Specified by:
printMBean in interface OutputFormatter
Parameters:
mbean - - mbean to print

printMBean

public void printMBean(AttributeList mbean)
Print an AttributeList format of an mbean

Specified by:
printMBean in interface OutputFormatter
Parameters:
mbean - - mbean to print

printMBean

public void printMBean(Map mbean)
Print a Map format of an mbean

Specified by:
printMBean in interface OutputFormatter
Parameters:
mbean - - mbean to print

printMBean

public void printMBean(Collection mbean)
Print a collection of mbean

Specified by:
printMBean in interface OutputFormatter
Parameters:
mbean - - collection of mbeans

printMessage

public void printMessage(Map msg)
Print a Map format of a JMS message

Specified by:
printMessage in interface OutputFormatter
Parameters:
msg -

printMessage

public void printMessage(Message msg)
Print a Message format of a JMS message

Specified by:
printMessage in interface OutputFormatter
Parameters:
msg - - JMS message to print

printMessage

public void printMessage(Collection msg)
Print a collection of JMS messages

Specified by:
printMessage in interface OutputFormatter
Parameters:
msg - - collection of JMS messages

printHelp

public void printHelp(String[] helpMsgs)
Print help messages

Specified by:
printHelp in interface OutputFormatter
Parameters:
helpMsgs - - help messages to print

printInfo

public void printInfo(String info)
Print an information message

Specified by:
printInfo in interface OutputFormatter
Parameters:
info - - information message to print

printException

public void printException(Exception e)
Print an exception message

Specified by:
printException in interface OutputFormatter
Parameters:
e - - exception to print

printVersion

public void printVersion(String version)
Print a version information

Specified by:
printVersion in interface OutputFormatter
Parameters:
version - - version info to print

print

public void print(Map map)
Print a generic key value mapping

Specified by:
print in interface OutputFormatter
Parameters:
map - to print

print

public void print(String[] strings)
Print a generic array of strings

Specified by:
print in interface OutputFormatter
Parameters:
strings - - string array to print

print

public void print(Collection collection)
Print a collection of objects

Specified by:
print in interface OutputFormatter
Parameters:
collection - - collection to print

print

public void print(String string)
Print a java string

Specified by:
print in interface OutputFormatter
Parameters:
string - - string to print


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.