|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILoggerProxy
Remote interface to a runtime instance of a Logger.
Management attributes and operations are documented in this interface.
An implementation of this interface can be created using the MFProxyFactory class. Each implementation instance is valid for the life of the provided JMS/JMX Connector and MBean ObjectName. The implementation is built using remote JMX MBeanServer calls.
For each JMX MBean attribute, this interface provides an associated get method (for readable attributes) and/or a set method (for writable attributes).
For each JMX MBean operation, this interface provides an associated method with a signature as described by the MBean's operation meta-data. Each JMX MBean operation has an associated impact:
All exceptions emitted by implementations are wrapped as a ProxyRuntimeException.
Field Summary | |
---|---|
static java.lang.String |
APPLICATION_ALERT_LOGGER_METRICS_LOGGEDPERMINUTE_NOTIFICATION_ID
Notification type constant for the notification application.alert.logger.metrics.LoggedPerMinute. |
static java.lang.String |
APPLICATION_ALERT_LOGGER_NOTIFICATIONS_LOGGEDPERMINUTE_NOTIFICATION_ID
Notification type constant for the notification application.alert.logger.notifications.LoggedPerMinute. |
static IMetricIdentity |
LOGGER_METRICS_LOGGEDPERMINUTE_METRIC_ID
Metric identity constant for the metric logger.metrics.LoggedPerMinute. |
static IMetricIdentity |
LOGGER_NOTIFICATIONS_LOGGEDPERMINUTE_METRIC_ID
Metric identity constant for the metric logger.notifications.LoggedPerMinute. |
static java.lang.String |
SYSTEM_STATE_OFFLINE_NOTIFICATION_ID
Notification type constant for the notification system.state.Offline. |
static java.lang.String |
SYSTEM_STATE_ONLINE_NOTIFICATION_ID
Notification type constant for the notification system.state.Online. |
Method Summary | |
---|---|
void |
addComponentCollectionID(java.lang.String[] componentCollectionID)
Invokes the addComponentCollectionID operation. |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
Adds a notification listener. |
void |
clearError()
Invokes the clearError operation. |
void |
disableAlerts(IAlert[] alerts)
Invokes the disableAlerts operation. |
void |
disableMetrics(IMetricIdentity[] ids)
Invokes the disableMetrics operation. |
void |
enableAlerts(IAlert[] alerts)
Invokes the enableAlerts operation. |
void |
enableMetrics(IMetricIdentity[] ids)
Invokes the enableMetrics operation. |
IMetricIdentity[] |
getActiveMetrics(IMetricIdentity[] ids)
Invokes the getActiveMetrics operation. |
AttributeList |
getAttributes(java.lang.String[] attributeNames)
Gets the values of several attributes of a Logger component. |
java.lang.String |
getClassname()
Gets the value of the Classname attribute. |
java.lang.String |
getClasspath()
Gets the value of the Classpath attribute. |
java.lang.Integer |
getCollectionsMonitorPollInterval()
Gets the value of the CollectionsMonitorPollInterval attribute. |
java.lang.String |
getCollectionsMonitorRuntimeID()
Gets the value of the CollectionsMonitorRuntimeID attribute. |
java.lang.String[] |
getComponentCollections()
Gets the value of the ComponentCollections attribute. |
java.lang.String |
getConfigID()
Gets the value of the ConfigID attribute. |
java.lang.String |
getControlNumber()
Gets the value of the ControlNumber attribute. |
IAlert[] |
getEnabledAlerts(IMetricIdentity[] ids)
Invokes the getEnabledAlerts operation. |
IMetricIdentity[] |
getEnabledMetrics(IMetricIdentity[] ids)
Invokes the getEnabledMetrics operation. |
java.lang.Boolean |
getEvaluationMode()
Gets the value of the EvaluationMode attribute. |
java.lang.String |
getLastError()
Gets the value of the LastError attribute. |
java.lang.Integer |
getLastErrorLevel()
Gets the value of the LastErrorLevel attribute. |
java.lang.String |
getLastErrorLevelString()
Gets the value of the LastErrorLevelString attribute. |
java.lang.String |
getLog4jConfigurationFilePath()
Gets the value of the Log4jConfigurationFilePath attribute. |
java.lang.String |
getLogFormat()
Gets the value of the LogFormat attribute. |
java.lang.String |
getLogTextDelimiter()
Gets the value of the LogTextDelimiter attribute. |
java.lang.Integer |
getMaxLookbackPeriod()
Gets the value of the MaxLookbackPeriod attribute. |
java.lang.Integer |
getMetricsCollectionInterval()
Gets the value of the MetricsCollectionInterval attribute. |
IMetricsData |
getMetricsData(IMetricIdentity[] ids,
java.lang.Boolean returnTriggeredAlerts)
Invokes the getMetricsData operation. |
IMetricInfo[] |
getMetricsInfo()
Invokes the getMetricsInfo operation. |
java.lang.Integer |
getMetricsRefreshInterval()
Gets the value of the MetricsRefreshInterval attribute. |
java.lang.String |
getReleaseVersion()
Gets the value of the ReleaseVersion attribute. |
java.lang.Boolean |
getRepeatMetricAlerts()
Gets the value of the RepeatMetricAlerts attribute. |
java.lang.Short |
getState()
Gets the value of the State attribute. |
java.lang.String |
getStateString()
Gets the value of the StateString attribute. |
java.lang.Integer |
getTraceMask()
Gets the value of the TraceMask attribute. |
java.lang.String |
getTraceMaskValues()
Gets the value of the TraceMaskValues attribute. |
java.lang.Long |
getUptime()
Gets the value of the Uptime attribute. |
void |
reload()
Invokes the reload operation. |
java.lang.Boolean |
removeComponentCollectionID(java.lang.String[] componentCollectionID)
Invokes the removeComponentCollectionID operation. |
void |
removeNotificationListener(NotificationListener listener)
Removes a notification listener. |
void |
resetMetrics()
Invokes the resetMetrics operation. |
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of a Logger component. |
void |
setCollectionsMonitorPollInterval(java.lang.Integer value)
Sets the value of the CollectionsMonitorPollInterval attribute. |
void |
setCollectionsMonitorRuntimeID(java.lang.String value)
Sets the value of the CollectionsMonitorRuntimeID attribute. |
void |
setComponentCollections(java.lang.String[] value)
Sets the value of the ComponentCollections attribute. |
void |
setControlNumber(java.lang.String value)
Sets the value of the ControlNumber attribute. |
void |
setEvaluationMode(java.lang.Boolean value)
Sets the value of the EvaluationMode attribute. |
void |
setLog4jConfigurationFilePath(java.lang.String value)
Sets the value of the Log4jConfigurationFilePath attribute. |
void |
setLogFormat(java.lang.String value)
Sets the value of the LogFormat attribute. |
void |
setLogTextDelimiter(java.lang.String value)
Sets the value of the LogTextDelimiter attribute. |
void |
setMaxLookbackPeriod(java.lang.Integer value)
Sets the value of the MaxLookbackPeriod attribute. |
void |
setMetricsCollectionInterval(java.lang.Integer value)
Sets the value of the MetricsCollectionInterval attribute. |
void |
setMetricsRefreshInterval(java.lang.Integer value)
Sets the value of the MetricsRefreshInterval attribute. |
void |
setRepeatMetricAlerts(java.lang.Boolean value)
Sets the value of the RepeatMetricAlerts attribute. |
void |
setTraceMask(java.lang.Integer value)
Sets the value of the TraceMask attribute. |
void |
start()
Invokes the start operation. |
void |
stop()
Invokes the stop operation. |
Field Detail |
---|
static final java.lang.String APPLICATION_ALERT_LOGGER_METRICS_LOGGEDPERMINUTE_NOTIFICATION_ID
Description: Alert for metric logger.metrics.LoggedPerMinute
static final java.lang.String APPLICATION_ALERT_LOGGER_NOTIFICATIONS_LOGGEDPERMINUTE_NOTIFICATION_ID
Description: Alert for metric logger.notifications.LoggedPerMinute
static final IMetricIdentity LOGGER_METRICS_LOGGEDPERMINUTE_METRIC_ID
Description: Rate at which metrics have been logged.
logger.metrics.LoggedPerMinute
static final IMetricIdentity LOGGER_NOTIFICATIONS_LOGGEDPERMINUTE_METRIC_ID
Description: Rate at which notifications have been logged.
logger.notifications.LoggedPerMinute
static final java.lang.String SYSTEM_STATE_OFFLINE_NOTIFICATION_ID
Description: Component stop complete.
system.state.Offline
static final java.lang.String SYSTEM_STATE_ONLINE_NOTIFICATION_ID
Description: Component start complete.
system.state.Online
Method Detail |
---|
void addComponentCollectionID(java.lang.String[] componentCollectionID)
Adds a Component Collection ID to the list of Component Collections in which the LoggerComponent is currently interested.
Impact: ACTION
componentCollectionID
- The ID of a Component Collection to be added to the list of Component Collections in which the LoggerComponent is currently interested.void addNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
A Logger component publishes the following notifications:
application.alert.logger.metrics.LoggedPerMinute
application.alert.logger.notifications.LoggedPerMinute
system.state.Offline
system.state.Online
listener
- The listener object which will handle the notifications emitted component.filter
- The filter object. If filter is null, no filtering will be performed before handling notifications.handback
- The context to be sent to the listener when a notification is emitted.removeNotificationListener(javax.management.NotificationListener)
void clearError()
Clear existing error condition.
Impact: ACTION
getLastErrorLevel()
void disableAlerts(IAlert[] alerts)
Disable threshold alerts on a metric.
Impact: ACTION
Metrics that allow alert thresholds to be specified are:
alerts
- A list of alerts to disable.enableAlerts(com.sonicsw.mf.common.metrics.IAlert[])
,
getEnabledAlerts(com.sonicsw.mf.common.metrics.IMetricIdentity[])
void disableMetrics(IMetricIdentity[] ids)
Disable the given set of dynamic metrics.
Impact: ACTION
Dynamic metrics are:
ids
- A list of metrics identity patterns.enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
getMetricsInfo()
,
resetMetrics()
void enableAlerts(IAlert[] alerts)
Enable threshold alerts on a metric.
Impact: ACTION
Metrics that allow alert thresholds to be specified are:
alerts
- A list of alerts to enable.disableAlerts(com.sonicsw.mf.common.metrics.IAlert[])
,
getEnabledAlerts(com.sonicsw.mf.common.metrics.IMetricIdentity[])
void enableMetrics(IMetricIdentity[] ids)
Enable the given set of dynamic metrics.
Impact: ACTION
Dynamic metrics are:
ids
- A list of metrics identity patterns.disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
getMetricsInfo()
,
resetMetrics()
IMetricIdentity[] getActiveMetrics(IMetricIdentity[] ids)
Gets the the list of metrics currently active in this component.
Impact: INFO
ids
- A list of metrics identity patterns.disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
getMetricsInfo()
,
resetMetrics()
AttributeList getAttributes(java.lang.String[] attributeNames)
Getting multiple attribute values at once is typically more efficient than getting individual attribute values.
Readable attributes (and their datatypes) exposed by a Logger are:
Classname
(java.lang.String)
Classpath
(java.lang.String)
CollectionsMonitorPollInterval
(java.lang.Integer)
CollectionsMonitorRuntimeID
(java.lang.String)
ComponentCollections
(java.lang.String[])
ConfigID
(java.lang.String)
ControlNumber
(java.lang.String)
EvaluationMode
(java.lang.Boolean)
LastError
(java.lang.String)
LastErrorLevel
(java.lang.Integer)
LastErrorLevelString
(java.lang.String)
Log4jConfigurationFilePath
(java.lang.String)
LogFormat
(java.lang.String)
LogTextDelimiter
(java.lang.String)
MaxLookbackPeriod
(java.lang.Integer)
MetricsCollectionInterval
(java.lang.Integer)
MetricsRefreshInterval
(java.lang.Integer)
ReleaseVersion
(java.lang.String)
RepeatMetricAlerts
(java.lang.Boolean)
State
(java.lang.Short)
StateString
(java.lang.String)
TraceMask
(java.lang.Integer)
TraceMaskValues
(java.lang.String)
Uptime
(java.lang.Long)
attributeNames
- A list of the attribute names of attributes to be retrieved.
setAttributes(javax.management.AttributeList)
java.lang.String getClassname()
java.lang.String getClasspath()
java.lang.Integer getCollectionsMonitorPollInterval()
setCollectionsMonitorPollInterval(java.lang.Integer)
java.lang.String getCollectionsMonitorRuntimeID()
setCollectionsMonitorRuntimeID(java.lang.String)
java.lang.String[] getComponentCollections()
setComponentCollections(java.lang.String[])
java.lang.String getConfigID()
java.lang.String getControlNumber()
setControlNumber(java.lang.String)
IAlert[] getEnabledAlerts(IMetricIdentity[] ids)
Get all metric threshold alerts enabled by this component.
Impact: INFO
ids
- A list of metrics identities for which to get the enabled alerts.disableAlerts(com.sonicsw.mf.common.metrics.IAlert[])
,
enableAlerts(com.sonicsw.mf.common.metrics.IAlert[])
IMetricIdentity[] getEnabledMetrics(IMetricIdentity[] ids)
Get the list of metric patterns that have been enabled for this component.
Impact: INFO
ids
- A list of metrics identities for which to get the enabled alerts.disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
getMetricsInfo()
,
resetMetrics()
java.lang.Boolean getEvaluationMode()
setEvaluationMode(java.lang.Boolean)
java.lang.String getLastError()
java.lang.Integer getLastErrorLevel()
java.lang.String getLastErrorLevelString()
java.lang.String getLog4jConfigurationFilePath()
setLog4jConfigurationFilePath(java.lang.String)
java.lang.String getLogFormat()
setLogFormat(java.lang.String)
java.lang.String getLogTextDelimiter()
setLogTextDelimiter(java.lang.String)
java.lang.Integer getMaxLookbackPeriod()
setMaxLookbackPeriod(java.lang.Integer)
java.lang.Integer getMetricsCollectionInterval()
setMetricsCollectionInterval(java.lang.Integer)
IMetricsData getMetricsData(IMetricIdentity[] ids, java.lang.Boolean returnTriggeredAlerts)
Gets metric values for a given set of metrics. If a requested metric was not enabled or is otherwise unknown, then no data for that metric will be included in the results.
Impact: INFO
ids
- A list of active metrics, either individual metrics or instances.returnTriggeredAlerts
- If true, each metric returned should include a list of triggered (exceeded) alerts for these metrics.disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsInfo()
,
resetMetrics()
IMetricInfo[] getMetricsInfo()
Gets the meta-data for all metrics supported by this component.
Impact: INFO
disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
resetMetrics()
java.lang.Integer getMetricsRefreshInterval()
setMetricsRefreshInterval(java.lang.Integer)
java.lang.String getReleaseVersion()
java.lang.Boolean getRepeatMetricAlerts()
setRepeatMetricAlerts(java.lang.Boolean)
java.lang.Short getState()
getStateString()
,
IComponentState
java.lang.String getStateString()
getState()
,
IComponentState.STATE_TEXT
java.lang.Integer getTraceMask()
setTraceMask(java.lang.Integer)
,
getTraceMaskValues()
java.lang.String getTraceMaskValues()
getTraceMask()
,
setTraceMask(java.lang.Integer)
java.lang.Long getUptime()
void reload()
Asynchronously reload the component and restart the component if it was previously online.
Impact: ACTION
java.lang.Boolean removeComponentCollectionID(java.lang.String[] componentCollectionID)
Removes a Component Collection ID from the list of Component Collections in which the LoggerComponent is currently interested. A return value of "false" indicates that the attempt was unsuccessful [A LoggerComponent must always be configured with at least one Component Collection ID, and an attempt to remove the only remaining ID will fail].
Impact: ACTION
componentCollectionID
- The ID of a Component Collection to be removed from the list of Component Collections in which the LoggerComponent is currently interested.void removeNotificationListener(NotificationListener listener)
This method will remove all the information related to the given listener.
listener
- The listener object which will handle the notifications emitted by the registered MBean.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, Object)
void resetMetrics()
Reset all metrics to their initial state.
Impact: ACTION
disableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
enableMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getActiveMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getEnabledMetrics(com.sonicsw.mf.common.metrics.IMetricIdentity[])
,
getMetricsData(com.sonicsw.mf.common.metrics.IMetricIdentity[], java.lang.Boolean)
,
getMetricsInfo()
AttributeList setAttributes(AttributeList attributes)
Setting multiple attribute values at once is typically more efficient than setting individual attribute values.
Settable attributes (and their datatypes) exposed by a Logger are:
CollectionsMonitorPollInterval
(java.lang.Integer)
CollectionsMonitorRuntimeID
(java.lang.String)
ComponentCollections
(java.lang.String[])
ControlNumber
(java.lang.String)
EvaluationMode
(java.lang.Boolean)
Log4jConfigurationFilePath
(java.lang.String)
LogFormat
(java.lang.String)
LogTextDelimiter
(java.lang.String)
MaxLookbackPeriod
(java.lang.Integer)
MetricsCollectionInterval
(java.lang.Integer)
MetricsRefreshInterval
(java.lang.Integer)
RepeatMetricAlerts
(java.lang.Boolean)
TraceMask
(java.lang.Integer)
attributes
- A list of attributes: The identification of the attributes to be set and the values they are to be set to.
getAttributes(java.lang.String[])
void setCollectionsMonitorPollInterval(java.lang.Integer value)
value
- The amount of time that the LoggerComponent instance will wait between attempts to poll its associated CollectionMonitor for metrics and notifications data.getCollectionsMonitorPollInterval()
void setCollectionsMonitorRuntimeID(java.lang.String value)
value
- The runtime ID of the CollectionsMonitor with which this LoggerComponent instance is associated.getCollectionsMonitorRuntimeID()
void setComponentCollections(java.lang.String[] value)
value
- IDs of Component Collections in which this LoggerComponent is interested.getComponentCollections()
void setControlNumber(java.lang.String value)
value
- The LoggerComponent License Control Number [required in order to access Logger functionality].getControlNumber()
void setEvaluationMode(java.lang.Boolean value)
value
- Flag that indicates if LoggerComponent is running in evaluation-only mode [limited time use].getEvaluationMode()
void setLog4jConfigurationFilePath(java.lang.String value)
value
- Path to log4j configuration file.getLog4jConfigurationFilePath()
void setLogFormat(java.lang.String value)
value
- Format used to log data [Delimited Text, XML, or Java Object format].getLogFormat()
void setLogTextDelimiter(java.lang.String value)
value
- Character [or text] used to delimit log entries [applicable only when using the Delimited Text log format].getLogTextDelimiter()
void setMaxLookbackPeriod(java.lang.Integer value)
value
- The maximum number of threads that the Agent Manager can create to poll containers for their state.getMaxLookbackPeriod()
void setMetricsCollectionInterval(java.lang.Integer value)
value
- Metrics collection interval (in minutes)getMetricsCollectionInterval()
void setMetricsRefreshInterval(java.lang.Integer value)
value
- Metrics refresh interval (in seconds)getMetricsRefreshInterval()
void setRepeatMetricAlerts(java.lang.Boolean value)
value
- Repeat metric alert notificationsgetRepeatMetricAlerts()
void setTraceMask(java.lang.Integer value)
value
- Debug bit mask.getTraceMask()
,
getTraceMaskValues()
void start()
Start providing service.
Impact: ACTION
stop()
void stop()
Stop providing service.
Impact: ACTION
start()
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |