1 23 24 29 30 31 package com.sun.cli.util.stringifier; 32 33 import javax.management.monitor.MonitorNotification ; 34 35 36 public class MonitorNotificationStringifier 37 extends NotificationStringifier implements Stringifier 38 { 39 public static MonitorNotificationStringifier DEFAULT = 40 new MonitorNotificationStringifier(); 41 42 public 43 MonitorNotificationStringifier( ) 44 { 45 super(); 46 } 47 48 public 49 MonitorNotificationStringifier( Options options ) 50 { 51 super( options ); 52 } 53 54 public String 55 stringify( Object o ) 56 { 57 final MonitorNotification notif = (MonitorNotification )o; 58 59 final StringBuffer b = super._stringify( notif ); 60 append( b, "" ); 61 62 append( b, "Observed object: " + notif.getObservedObject() ); 63 append( b, "Observed attribute: " + notif.getObservedAttribute() ); 64 append( b, "Trigger: " + notif.getTrigger() ); 65 append( b, "Gauge: " + notif.getDerivedGauge() ); 66 67 return( b.toString() ); 68 } 69 } 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | Popular Tags |