Interface MonitoringService
-
- All Superinterfaces:
ConfigBeanProxy
,ConfigExtension
,Container
,PropertyBag
public interface MonitoringService extends ConfigExtension, PropertyBag
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MonitoringService.Duck
-
Field Summary
Fields Modifier and Type Field Description static LocalStringManagerImpl
localStrings
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ContainerMonitoring>
getContainerMonitoring()
Get the monitoring configuration for containers that used the default ContainerMonitoring.ContainerMonitoring
getContainerMonitoring(String name)
Return the monitoring configuration for a container by the provided name, assuming the named container used the default ContainerMonitoring to express its monitoring configuration.String
getDtraceEnabled()
Gets the value of the dtrace-enabled attribute.String
getMbeanEnabled()
Gets the value of the mbean-enabled attribute.@NotNull ModuleMonitoringLevels
getModuleMonitoringLevels()
Gets the value of the moduleMonitoringLevels property.String
getMonitoringEnabled()
Gets the value of the monitoring-enabled attribute.List<MonitoringItem>
getMonitoringItems()
Get the monitoring configuration for other types of containers that used custom monitoring configuration.String
getMonitoringLevel(String name)
List<Property>
getProperty()
Properties as perPropertyBag
boolean
isAnyModuleOn()
void
setDtraceEnabled(String value)
Sets the value of the dtrace-enabled attribute.void
setMbeanEnabled(String value)
Sets the value of the mbean-enabled attribute.void
setModuleMonitoringLevels(ModuleMonitoringLevels value)
Sets the value of the moduleMonitoringLevels property.void
setMonitoringEnabled(String value)
Sets the value of the monitoring-enabled attribute.void
setMonitoringLevel(String name, String level)
-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
-
-
-
Field Detail
-
localStrings
static final LocalStringManagerImpl localStrings
-
-
Method Detail
-
getModuleMonitoringLevels
@NotNull @NotNull ModuleMonitoringLevels getModuleMonitoringLevels()
Gets the value of the moduleMonitoringLevels property.- Returns:
- possible object is
ModuleMonitoringLevels
-
setModuleMonitoringLevels
void setModuleMonitoringLevels(ModuleMonitoringLevels value) throws PropertyVetoException
Sets the value of the moduleMonitoringLevels property.- Parameters:
value
- allowed object isModuleMonitoringLevels
- Throws:
PropertyVetoException
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<Property> getProperty()
Properties as perPropertyBag
- Specified by:
getProperty
in interfacePropertyBag
- Returns:
- the property list
-
getMbeanEnabled
String getMbeanEnabled()
Gets the value of the mbean-enabled attribute. This boolean attribute determines whether monitoring mbeans are enabled or disabled. When disabled, all montioring activity will be disabled- Returns:
- present monitoring activity status
-
setMbeanEnabled
void setMbeanEnabled(String value) throws PropertyVetoException
Sets the value of the mbean-enabled attribute.- Parameters:
value
- allowed object is a String- Throws:
PropertyVetoException
-
getMonitoringEnabled
String getMonitoringEnabled()
Gets the value of the monitoring-enabled attribute. This boolean attribute determines whether monitoring mebans are enabled or disabled. When disabled, all montioring activity will be disabled- Returns:
- present monitoring activity status
-
setMonitoringEnabled
void setMonitoringEnabled(String value) throws PropertyVetoException
Sets the value of the monitoring-enabled attribute.- Parameters:
value
- allowed object is String- Throws:
PropertyVetoException
-
getDtraceEnabled
String getDtraceEnabled()
Gets the value of the dtrace-enabled attribute.- Returns:
- present dtrace status
-
setDtraceEnabled
void setDtraceEnabled(String value) throws PropertyVetoException
Sets the value of the dtrace-enabled attribute.- Parameters:
value
- allowed object is String- Throws:
PropertyVetoException
-
getContainerMonitoring
List<ContainerMonitoring> getContainerMonitoring()
Get the monitoring configuration for containers that used the default ContainerMonitoring.- Returns:
- list of container monitoring configurations (default)
-
getMonitoringItems
List<MonitoringItem> getMonitoringItems()
Get the monitoring configuration for other types of containers that used custom monitoring configuration.- Returns:
- list of container monitoring configurations
-
getContainerMonitoring
@DuckTyped ContainerMonitoring getContainerMonitoring(String name)
Return the monitoring configuration for a container by the provided name, assuming the named container used the default ContainerMonitoring to express its monitoring configuration.- Parameters:
name
- name of the container to return the configuration for- Returns:
- the container configuration or null if not found
-
getMonitoringLevel
@DuckTyped String getMonitoringLevel(String name)
-
setMonitoringLevel
@DuckTyped void setMonitoringLevel(String name, String level)
-
isAnyModuleOn
@DuckTyped boolean isAnyModuleOn()
-
-