1 /*------------------------------------------------------------------------------
  2 Name:      RemoteMBeanServer.java
  3 Project:   xmlBlaster.org
  4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
  5 ------------------------------------------------------------------------------*/
  6 package org.xmlBlaster.client.jmx;
  7 
  8 import javax.management.*;
  9 import java.rmi.*;
 10 import java.util.*;
 11 
 12 public interface RemoteMBeanServer {
 13 
 14   public ObjectInstance createMBean(String className,
 15                                     ObjectName name) throws
 16                                   ReflectionException,
 17                                   InstanceAlreadyExistsException,
 18                                   MBeanRegistrationException,
 19                                   MBeanException,
 20                                   NotCompliantMBeanException;
 21 
 22   public ObjectInstance createMBean(String className,
 23                                     ObjectName name,
 24                                     ObjectName loaderName) throws ReflectionException,
 25                                   InstanceAlreadyExistsException,
 26                                   MBeanRegistrationException,
 27                                   MBeanException,
 28                                   NotCompliantMBeanException,
 29                                   InstanceNotFoundException;
 30 
 31   public ObjectInstance createMBean(String className,
 32                                     ObjectName name,
 33                                     Object[] params,
 34                                     String[] signature) throws ReflectionException,
 35                                   InstanceAlreadyExistsException,
 36                                   MBeanRegistrationException,
 37                                   MBeanException,
 38                                   NotCompliantMBeanException;
 39 
 40   public ObjectInstance createMBean(String className,
 41                                     ObjectName name,
 42                                     ObjectName loaderName,
 43                                     Object[] params,
 44                                     String[] signature) throws ReflectionException,
 45                                   InstanceAlreadyExistsException,
 46                                   MBeanRegistrationException,
 47                                   MBeanException,
 48                                   NotCompliantMBeanException,
 49                                   InstanceNotFoundException;
 50 
 51   public void unregisterMBean(ObjectName name) throws InstanceNotFoundException,
 52                             MBeanRegistrationException;
 53 
 54   public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException;
 55 
 56   public boolean isRegistered(ObjectName name);
 57 
 58   public Integer getMBeanCount();
 59 
 60   public Object getAttribute(ObjectName name,
 61                                String attribute) throws MBeanException,
 62                                      AttributeNotFoundException,
 63                                      InstanceNotFoundException,
 64                                      ReflectionException;
 65 
 66   public AttributeList getAttributes(ObjectName name,
 67                                 String[] attributes) throws InstanceNotFoundException,
 68                                    ReflectionException;
 69 
 70   public void setAttribute(ObjectName name,
 71                            Attribute attribute) throws InstanceNotFoundException,
 72                          AttributeNotFoundException,
 73                          InvalidAttributeValueException,
 74                          MBeanException,
 75                          ReflectionException;
 76 
 77   public AttributeList setAttributes(ObjectName name,
 78                                 AttributeList attributes) throws InstanceNotFoundException,
 79                                    ReflectionException;
 80 
 81   public Object invoke(ObjectName name,
 82                          String operationName,
 83                          Object[] params,
 84                          String[] signature) throws InstanceNotFoundException,
 85                                MBeanException,
 86                                ReflectionException;
 87 
 88   public String getDefaultDomain();
 89 
 90   public void addNotificationListener(
 91                          ObjectName name,
 92                          NotificationListener listener,
 93                          NotificationFilter filter,
 94                          Object handback) throws InstanceNotFoundException;
 95 
 96   public void addNotificationListener(
 97                          ObjectName name,
 98                          ObjectName listener,
 99                          NotificationFilter filter,
100                          Object handback) throws InstanceNotFoundException;
101 
102   public void removeNotificationListener(
103                          ObjectName name,
104                          NotificationListener listener) throws InstanceNotFoundException,
105                                        ListenerNotFoundException;
106 
107   public void removeNotificationListener(
108                          ObjectName name,
109                          ObjectName listener) throws InstanceNotFoundException,
110                                        ListenerNotFoundException;
111 
112   public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException,
113                               IntrospectionException,
114                               ReflectionException;
115 
116   public boolean isInstanceOf(ObjectName name,
117                                String className) throws InstanceNotFoundException;
118 
119   public Set queryMBeans(ObjectName name, QueryExp query);
120 
121   public Set queryNames(ObjectName name, QueryExp query);
122 
123   public void close();
124 
125 }


syntax highlighted by Code2HTML, v. 0.9.1