1 23 24 29 package com.sun.appserv.management.base; 30 31 import javax.management.Attribute ; 32 33 import com.sun.appserv.management.base.AMX; 34 import com.sun.appserv.management.base.XTypes; 35 36 40 public interface Sample extends Utility, AMX, Singleton 41 { 42 43 public static final String J2EE_TYPE = XTypes.SAMPLE; 44 45 48 public static final String SAMPLE_NOTIFICATION_TYPE = "Sample"; 49 50 53 public static final String USER_DATA_KEY = "UserData"; 54 55 63 public void emitNotifications( final Object data, final int numNotifs, final long intervalMillis ); 64 65 72 public void addAttribute( final String name, final Object value ); 73 74 78 public void removeAttribute( final String name ); 79 80 83 public void uploadBytes( final byte[] bytes ); 84 public byte[] downloadBytes( final int numBytes ); 85 } 86 | Popular Tags |