1 18 package org.apache.activemq.console.formatter; 19 20 import javax.management.ObjectInstance ; 21 import javax.management.ObjectName ; 22 import javax.management.AttributeList ; 23 import javax.jms.Message ; 24 import java.util.Collection ; 25 import java.util.Map ; 26 import java.io.OutputStream ; 27 28 public interface OutputFormatter { 29 30 34 public OutputStream getOutputStream(); 35 36 40 public void printMBean(ObjectInstance mbean); 41 42 46 public void printMBean(ObjectName mbean); 47 48 52 public void printMBean(AttributeList mbean); 53 54 58 public void printMBean(Map mbean); 59 60 64 public void printMBean(Collection mbean); 65 66 70 public void printMessage(Map msg); 71 72 76 public void printMessage(Message msg); 77 78 82 public void printMessage(Collection msg); 83 84 88 public void printHelp(String [] helpMsgs); 89 90 94 public void printInfo(String info); 95 96 100 public void printException(Exception e); 101 102 106 public void printVersion(String version); 107 108 112 public void print(Map map); 113 114 118 public void print(String [] strings); 119 120 124 public void print(Collection collection); 125 126 130 public void print(String string); 131 } 132 | Popular Tags |