1 25 package org.objectweb.jonas.management; 26 27 import javax.management.Notification ; 29 30 34 public class AttributeAddNotification extends Notification { 35 36 static String ATTRIBUTE_ADD = "jonas.management.attribute.add"; 37 38 String attributeName = null; 39 String addedValue = null; 40 41 51 public AttributeAddNotification(Object source, long sequenceNumber, long timeStamp, String message, String attributeName, String addedValue) { 52 super(ATTRIBUTE_ADD, source, sequenceNumber, timeStamp, message); 53 this.attributeName = attributeName; 54 this.addedValue = addedValue; 55 } 56 57 public String getAttributeName() { 58 return attributeName; 59 } 60 61 public String getAddedValue() { 62 return addedValue; 63 } 64 65 public String toString() { 66 String res = super.toString(); 67 return res + "\n[ added resource: " + addedValue + " ]\n"; 68 } 69 } 70 71 | Popular Tags |