com.cisco.oss.foundation.monitoring.component.config
Class MonitorAndManagementSettings

java.lang.Object
  extended by com.cisco.oss.foundation.monitoring.component.config.MonitorAndManagementSettings
All Implemented Interfaces:
MonitorAndManagementSettingsMXBean

public class MonitorAndManagementSettings
extends Object
implements MonitorAndManagementSettingsMXBean

This class provides the default implementation for MonitorAndManagementSettings which exposes several bits of information which eases monitoring systems to easily discover and self configure how this component can be monitored and managed.

Author:
manojc

Constructor Summary
MonitorAndManagementSettings()
           
 
Method Summary
 ControlSettings getControlSettings()
           
 OtherSettings getOtherSettings()
           
static MonitorAndManagementSettings newInstance(String settingsXml)
          Creates a new instance of MonitorAndManagementSettings from a classpath resource xml settings file.
static MonitorAndManagementSettings newInstance(URL settingsXml)
          Creates a new instance of MonitorAndManagementSettings from an URL to xml settings file.
 void setControlSettings(ControlSettings controlSettings)
          Sets the settings which tells how this component can be controlled remotely.
 void setOtherSettings(OtherSettings otherSettings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorAndManagementSettings

public MonitorAndManagementSettings()
Method Detail

newInstance

public static MonitorAndManagementSettings newInstance(URL settingsXml)
                                                throws IOException,
                                                       JAXBException
Creates a new instance of MonitorAndManagementSettings from an URL to xml settings file.

Parameters:
settingsXml - URL of the settings xml file
Returns:
a new instance of MonitoringConfiguration
Throws:
IOException
JAXBException

newInstance

public static MonitorAndManagementSettings newInstance(String settingsXml)
                                                throws JAXBException
Creates a new instance of MonitorAndManagementSettings from a classpath resource xml settings file.

Parameters:
settingsXml - Path of a classpath resource xml settings file
Returns:
a new instance of MonitorAndManagementSettings()
Throws:
IOException
JAXBException

getControlSettings

public ControlSettings getControlSettings()
Specified by:
getControlSettings in interface MonitorAndManagementSettingsMXBean
Returns:
The configuration which tells how this component can be controlled remotely

setControlSettings

public void setControlSettings(ControlSettings controlSettings)
Sets the settings which tells how this component can be controlled remotely.

Parameters:
controlSettings -

getOtherSettings

public OtherSettings getOtherSettings()
Specified by:
getOtherSettings in interface MonitorAndManagementSettingsMXBean

setOtherSettings

public void setOtherSettings(OtherSettings otherSettings)


Copyright © 2015 Cisco. All Rights Reserved.