Interface MonitoringService
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.glassfish.api.admin.config.ConfigExtension,org.glassfish.api.admin.config.Container,org.jvnet.hk2.config.types.PropertyBag
public interface MonitoringService
extends org.glassfish.api.admin.config.ConfigExtension, org.jvnet.hk2.config.types.PropertyBag
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionList<org.glassfish.api.monitoring.ContainerMonitoring>Get the monitoring configuration for containers that used the defaultContainerMonitoring.default org.glassfish.api.monitoring.ContainerMonitoringgetContainerMonitoring(String name) Return the monitoring configuration for a container by the provided name, assuming the named container used the defaultContainerMonitoringto express its monitoring configuration.Gets the value of thedtrace-enabledattribute.Gets the value of thembean-enabledattribute.@NotNull ModuleMonitoringLevelsGets the value of themoduleMonitoringLevelsproperty.Gets the value of themonitoring-enabledattribute.List<org.glassfish.api.monitoring.MonitoringItem>Get the monitoring configuration for other types of containers that used custom monitoring configuration.default StringgetMonitoringLevel(String moduleName) List<org.jvnet.hk2.config.types.Property>Properties as perPropertyBagdefault booleanvoidsetDtraceEnabled(String dtraceEnabled) Sets the value of thedtrace-enabledattribute.voidsetMbeanEnabled(String mbeanEnabled) Sets the value of thembean-enabledattribute.voidsetModuleMonitoringLevels(ModuleMonitoringLevels moduleMonitoringLevels) Sets the value of themoduleMonitoringLevelsproperty.voidsetMonitoringEnabled(String monitoringEnabled) Sets the value of themonitoring-enabledattribute.default booleansetMonitoringLevel(String moduleName, String level) Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Method Details
-
getModuleMonitoringLevels
Gets the value of themoduleMonitoringLevelsproperty.- Returns:
- possible object is
ModuleMonitoringLevels
-
setModuleMonitoringLevels
void setModuleMonitoringLevels(ModuleMonitoringLevels moduleMonitoringLevels) throws PropertyVetoException Sets the value of themoduleMonitoringLevelsproperty.- Parameters:
moduleMonitoringLevels- allowed object isModuleMonitoringLevels- Throws:
PropertyVetoException
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
getMbeanEnabled
String getMbeanEnabled()Gets the value of thembean-enabledattribute.This
booleanattribute determines whether monitoring mbeans are enabled or disabled. When disabled, all monitoring activity will be disabled.- Returns:
- present monitoring activity status
-
setMbeanEnabled
Sets the value of thembean-enabledattribute.- Parameters:
mbeanEnabled- allowed object is aString- Throws:
PropertyVetoException
-
getMonitoringEnabled
String getMonitoringEnabled()Gets the value of themonitoring-enabledattribute.This
booleanattribute determines whether monitoring mebans are enabled or disabled. When disabled, all monitoring activity will be disabled.- Returns:
- present monitoring activity status
-
setMonitoringEnabled
Sets the value of themonitoring-enabledattribute.- Parameters:
monitoringEnabled- allowed object isString- Throws:
PropertyVetoException
-
getDtraceEnabled
String getDtraceEnabled()Gets the value of thedtrace-enabledattribute.- Returns:
- present dtrace status
-
setDtraceEnabled
Sets the value of thedtrace-enabledattribute.- Parameters:
dtraceEnabled- allowed object isString.- Throws:
PropertyVetoException
-
getContainerMonitoring
List<org.glassfish.api.monitoring.ContainerMonitoring> getContainerMonitoring()Get the monitoring configuration for containers that used the defaultContainerMonitoring.- Returns:
- list of container monitoring configurations (default)
-
getMonitoringItems
List<org.glassfish.api.monitoring.MonitoringItem> getMonitoringItems()Get the monitoring configuration for other types of containers that used custom monitoring configuration.- Returns:
- list of container monitoring configurations
-
getContainerMonitoring
Return the monitoring configuration for a container by the provided name, assuming the named container used the defaultContainerMonitoringto 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
-
setMonitoringLevel
default boolean setMonitoringLevel(String moduleName, String level) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException - Throws:
org.jvnet.hk2.config.TransactionFailurePropertyVetoException
-
isAnyModuleOn
default boolean isAnyModuleOn()
-