| | |
| | | */ |
| | | public ObjectName getObjectName() |
| | | { |
| | | |
| | | return objectName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<AlertGenerator> getAlertGenerators() |
| | | { |
| | | |
| | | return alertGenerators; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void addAlertGenerator(AlertGenerator generator) |
| | | { |
| | | |
| | | synchronized (alertGenerators) |
| | | { |
| | | if (! alertGenerators.contains(generator)) |
| | |
| | | */ |
| | | public boolean removeAlertGenerator(AlertGenerator generator) |
| | | { |
| | | |
| | | synchronized (alertGenerators) |
| | | { |
| | | return alertGenerators.remove(generator); |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<ConfigurableComponent> getConfigurableComponents() |
| | | { |
| | | |
| | | return configurableComponents; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void addConfigurableComponent(ConfigurableComponent component) |
| | | { |
| | | |
| | | synchronized (configurableComponents) |
| | | { |
| | | if (! configurableComponents.contains(component)) |
| | |
| | | */ |
| | | public boolean removeConfigurableComponent(ConfigurableComponent component) |
| | | { |
| | | |
| | | synchronized (configurableComponents) |
| | | { |
| | | return configurableComponents.remove(component); |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<InvokableComponent> getInvokableComponents() |
| | | { |
| | | |
| | | return invokableComponents; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void addInvokableComponent(InvokableComponent component) |
| | | { |
| | | |
| | | synchronized (invokableComponents) |
| | | { |
| | | if (! invokableComponents.contains(component)) |
| | |
| | | */ |
| | | public boolean removeInvokableComponent(InvokableComponent component) |
| | | { |
| | | |
| | | synchronized (invokableComponents) |
| | | { |
| | | return invokableComponents.remove(component); |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<MonitorProvider> getMonitorProviders() |
| | | { |
| | | |
| | | return monitorProviders; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void addMonitorProvider(MonitorProvider component) |
| | | { |
| | | |
| | | synchronized (monitorProviders) |
| | | { |
| | | if (! monitorProviders.contains(component)) |
| | |
| | | */ |
| | | public boolean removeMonitorProvider(MonitorProvider component) |
| | | { |
| | | |
| | | synchronized (monitorProviders) |
| | | { |
| | | return monitorProviders.remove(component); |
| | |
| | | */ |
| | | private ConfigAttribute getConfigAttribute(String name) |
| | | { |
| | | |
| | | for (ConfigurableComponent component : configurableComponents) |
| | | { |
| | | for (ConfigAttribute attr : component.getConfigurationAttributes()) |
| | |
| | | */ |
| | | private Attribute getJmxAttribute(String name) |
| | | { |
| | | |
| | | String attributeName ; |
| | | String pendingString = ";" + OPTION_PENDING_VALUES ; |
| | | boolean pending = false ; |
| | |
| | | public Attribute getAttribute(String attributeName) |
| | | throws AttributeNotFoundException |
| | | { |
| | | |
| | | // |
| | | // Get the jmx Client connection |
| | | JmxClientConnection jmxClientConnection = getClientConnection(); |
| | |
| | | javax.management.Attribute attribute, ConfigEntry configEntry) |
| | | throws AttributeNotFoundException, InvalidAttributeValueException |
| | | { |
| | | |
| | | String name = attribute.getName() ; |
| | | // |
| | | // Get a duplicated version of the config attribute |
| | |
| | | public void setAttribute(javax.management.Attribute attribute) |
| | | throws AttributeNotFoundException, InvalidAttributeValueException |
| | | { |
| | | |
| | | ConfigEntry configEntry; |
| | | ConfigEntry newConfigEntry ; |
| | | |
| | |
| | | */ |
| | | public AttributeList setAttributes(AttributeList attributes) |
| | | { |
| | | |
| | | AttributeList setAttrs = new AttributeList(); |
| | | |
| | | // |
| | |
| | | public Object invoke(String actionName, Object[] params, String[] signature) |
| | | throws MBeanException |
| | | { |
| | | |
| | | for (InvokableComponent component : invokableComponents) |
| | | { |
| | | for (InvokableMethod method : component.getOperationSignatures()) |