|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAgentManagerProxy
Remote interface to a runtime instance of an AgentManager.
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.
Note: The Agent Manager receives and forwards all system state notifications published by all deployed components. Subscriptions to such notifications are allowed even though the Agent Manager does not describe those notifications in it's MBeanInfo.
Field Summary | |
---|---|
static java.lang.String |
GLOBAL_ID
The well known global component identity for this singleton component. |
static java.lang.String |
SYSTEM_ALERT_SYSTEM_POLLTHREADS_CURRENTPOOLSIZE_NOTIFICATION_ID
Notification type constant for the notification system.alert.system.pollthreads.CurrentPoolSize. |
static java.lang.String |
SYSTEM_ALERT_SYSTEM_POLLTHREADS_POOLWAITS_NOTIFICATION_ID
Notification type constant for the notification system.alert.system.pollthreads.PoolWaits. |
static java.lang.String |
SYSTEM_LOG_FAILURE_NOTIFICATION_ID
Notification type constant for the notification system.log.Failure. |
static java.lang.String |
SYSTEM_LOG_THRESHOLD_NOTIFICATION_ID
Notification type constant for the notification system.log.Threshold. |
static IMetricIdentity |
SYSTEM_POLLTHREADS_CURRENTPOOLSIZE_METRIC_ID
Metric identity constant for the metric system.pollthreads.CurrentPoolSize. |
static IMetricIdentity |
SYSTEM_POLLTHREADS_MAXPOOLSIZE_METRIC_ID
Metric identity constant for the metric system.pollthreads.MaxPoolSize. |
static IMetricIdentity |
SYSTEM_POLLTHREADS_POOLWAITS_METRIC_ID
Metric identity constant for the metric system.pollthreads.PoolWaits. |
static java.lang.String |
SYSTEM_STATE_FAILOVER_NOTIFICATION_ID
Notification type constant for the notification system.state.Failover. |
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. |
static java.lang.String |
SYSTEM_STATE_STARTUP_NOTIFICATION_ID
Notification type constant for the notification system.state.Startup. |
static java.lang.String |
SYSTEM_STATE_UNREACHABLE_NOTIFICATION_ID
Notification type constant for the notification system.state.Unreachable. |
Method Summary | |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
Adds a notification listener. |
void |
clearError()
Invokes the clearError operation. |
void |
clearLogFile()
Invokes the clearLogFile 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. |
java.lang.Boolean |
getAllowFailover()
Gets the value of the AllowFailover attribute. |
AttributeList |
getAttributes(java.lang.String[] attributeNames)
Gets the values of several attributes of an AgentManager component. |
java.lang.String |
getClassname()
Gets the value of the Classname attribute. |
java.lang.String |
getClasspath()
Gets the value of the Classpath attribute. |
IState[] |
getCollectiveState()
Invokes the getCollectiveState operation. |
IState[] |
getCollectiveState(java.lang.String configID)
Invokes the getCollectiveState operation. |
IState[] |
getCollectiveState(java.lang.String[] runtimeIds)
Invokes the getCollectiveState operation. |
java.lang.String |
getConfigID()
Gets the value of the ConfigID attribute. |
IAlert[] |
getEnabledAlerts(IMetricIdentity[] ids)
Invokes the getEnabledAlerts operation. |
IMetricIdentity[] |
getEnabledMetrics(IMetricIdentity[] ids)
Invokes the getEnabledMetrics operation. |
java.lang.String |
getFaultToleranceRole()
Gets the value of the FaultToleranceRole attribute. |
java.lang.Short |
getFaultTolerantState()
Gets the value of the FaultTolerantState attribute. |
java.lang.String |
getFaultTolerantStateString()
Gets the value of the FaultTolerantStateString 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 |
getLogExtract(java.lang.Long fromPosition,
java.lang.Long readLength)
Invokes the getLogExtract operation. |
javax.management.openmbean.CompositeData |
getLogExtractAndLogFileSize(java.lang.Long fromPosition,
java.lang.Long readLength)
Invokes the getLogExtractAndLogFileSize operation. |
java.lang.String |
getLogFile()
Gets the value of the LogFile attribute. |
java.lang.Long |
getLogFileRolloverSizeThreshold()
Gets the value of the LogFileRolloverSizeThreshold attribute. |
java.lang.Long |
getLogFileSize()
Gets the value of the LogFileSize attribute. |
java.lang.Long |
getLogFileSizeThreshold()
Gets the value of the LogFileSizeThreshold attribute. |
java.lang.Integer |
getMaxPollingThreads()
Gets the value of the MaxPollingThreads 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.Integer |
getMinPollingThreads()
Gets the value of the MinPollingThreads 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. |
java.lang.Object |
invoke(java.lang.String configID,
java.lang.String operationName,
java.lang.Object[] operationParams,
java.lang.String[] operationSignature,
java.lang.Boolean sync,
java.lang.Long timeout)
Invokes the invoke operation. |
void |
reload()
Invokes the reload operation. |
void |
removeNotificationListener(NotificationListener listener)
Removes a notification listener. |
void |
resetMetrics()
Invokes the resetMetrics operation. |
void |
saveLogFile(java.lang.String filename)
Invokes the saveLogFile operation. |
void |
setAllowFailover(java.lang.Boolean value)
Sets the value of the AllowFailover attribute. |
ICollectiveOpStatus |
setAttribute(java.lang.String configID,
java.lang.String attributeName,
java.lang.Object attributeValue,
java.lang.Boolean sync,
java.lang.Long timeout)
Invokes the setAttribute operation. |
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of an AgentManager component. |
ICollectiveOpStatus |
setAttributes(java.lang.String configID,
java.lang.String[] attributeNames,
java.lang.Object[] attributeValues,
java.lang.Boolean sync,
java.lang.Long timeout)
Invokes the setAttributes operation. |
void |
setLogFile(java.lang.String value)
Sets the value of the LogFile attribute. |
void |
setLogFileRolloverSizeThreshold(java.lang.Long value)
Sets the value of the LogFileRolloverSizeThreshold attribute. |
void |
setLogFileSizeThreshold(java.lang.Long value)
Sets the value of the LogFileSizeThreshold 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. |
void |
suspendActiveRole(java.lang.Integer seconds)
Invokes the suspendActiveRole operation. |
Field Detail |
---|
static final java.lang.String GLOBAL_ID
static final java.lang.String SYSTEM_ALERT_SYSTEM_POLLTHREADS_CURRENTPOOLSIZE_NOTIFICATION_ID
Description: Alert for metric system.pollthreads.CurrentPoolSize
static final java.lang.String SYSTEM_ALERT_SYSTEM_POLLTHREADS_POOLWAITS_NOTIFICATION_ID
Description: Alert for metric system.pollthreads.PoolWaits
static final java.lang.String SYSTEM_LOG_FAILURE_NOTIFICATION_ID
Description: Failure to write to the centralized log file.
system.log.Failure
static final java.lang.String SYSTEM_LOG_THRESHOLD_NOTIFICATION_ID
Description: The size of the current centralized log has reached or exceeded (by a 10% increment) the configured threshold.
system.log.Threshold
static final IMetricIdentity SYSTEM_POLLTHREADS_CURRENTPOOLSIZE_METRIC_ID
Description: Size of thread pool used to poll for container(s) state.
system.pollthreads.CurrentPoolSize
static final IMetricIdentity SYSTEM_POLLTHREADS_MAXPOOLSIZE_METRIC_ID
Description: Maximum size of thread pool used to poll for container(s) state since last metrics reset.
system.pollthreads.MaxPoolSize
static final IMetricIdentity SYSTEM_POLLTHREADS_POOLWAITS_METRIC_ID
Description: Number of times requests for container state had to wait because a pooled thread was not immediately available to service a poll request. Evaluated over the last 30 minutes.
system.pollthreads.PoolWaits
static final java.lang.String SYSTEM_STATE_FAILOVER_NOTIFICATION_ID
Description: Standby service has failed over to become the active service.
system.state.Failover
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
static final java.lang.String SYSTEM_STATE_STARTUP_NOTIFICATION_ID
Description: Agent/Container startup completed.
system.state.Startup
static final java.lang.String SYSTEM_STATE_UNREACHABLE_NOTIFICATION_ID
Description: Container unreachable.
system.state.Unreachable
Method Detail |
---|
void addNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
An AgentManager component publishes the following notifications:
system.alert.system.pollthreads.CurrentPoolSize
system.alert.system.pollthreads.PoolWaits
system.log.Failure
system.log.Threshold
system.state.Failover
system.state.Offline
system.state.Online
system.state.Startup
system.state.Unreachable
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 clearLogFile()
Clear the centralized log file.
Impact: ACTION
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()
java.lang.Boolean getAllowFailover()
setAllowFailover(java.lang.Boolean)
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 an AgentManager are:
AllowFailover
(java.lang.Boolean)
Classname
(java.lang.String)
Classpath
(java.lang.String)
ConfigID
(java.lang.String)
FaultToleranceRole
(java.lang.String)
FaultTolerantState
(java.lang.Short)
FaultTolerantStateString
(java.lang.String)
LastError
(java.lang.String)
LastErrorLevel
(java.lang.Integer)
LastErrorLevelString
(java.lang.String)
LogFile
(java.lang.String)
LogFileRolloverSizeThreshold
(java.lang.Long)
LogFileSize
(java.lang.Long)
LogFileSizeThreshold
(java.lang.Long)
MaxPollingThreads
(java.lang.Integer)
MetricsCollectionInterval
(java.lang.Integer)
MetricsRefreshInterval
(java.lang.Integer)
MinPollingThreads
(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()
IState[] getCollectiveState()
Gets the runtime state of the whole domain as recorded by the Agent Manager. Returns an array of IContainerState instances.
Impact: INFO
IState[] getCollectiveState(java.lang.String configID)
Gets the runtime state of the given collection as recorded by the Agent Manager.
Impact: INFO
configID
- The configuration ID of the collection for which the status is being sought. Returns an array of IContainerState or IComponentState instances that describe the state of the given collection. If an item in the collection no longer represents a known runtime identity then no runtime status will be provided in the returned array.IState[] getCollectiveState(java.lang.String[] runtimeIds)
Gets the runtime state for the given list of containers as recorded by the Agent Manager. Returns an array of IContainerState instances.
Impact: INFO
runtimeIds
- The list of the containers runtime identities for which the status is being sought.java.lang.String getConfigID()
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.String getFaultToleranceRole()
java.lang.Short getFaultTolerantState()
java.lang.String getFaultTolerantStateString()
java.lang.String getLastError()
java.lang.Integer getLastErrorLevel()
java.lang.String getLastErrorLevelString()
java.lang.String getLogExtract(java.lang.Long fromPosition, java.lang.Long readLength)
Reads the requested bytes from the centralized log file and returns them as a String.
Impact: INFO
fromPosition
- The starting position from which to read the log for the given date. If null, then the total log length minus the given readLength is assumed (i.e. the tail of the logging output). The total log length is calculated by summing the size of all log files (current + previous versions.readLength
- The maximum amount of bytes to read from the given (or assumed) starting position. The max size for this value is 1Mb. If null, 200Kb is assumed.javax.management.openmbean.CompositeData getLogExtractAndLogFileSize(java.lang.Long fromPosition, java.lang.Long readLength)
Reads the requested bytes from the centralized log file and returns them as a String encapsulated with the current log size. The current log size is the size of the current log file plus the sum of all available prior versions. When evaluating log output to be read, the current log file and previous versions (due to rollover activity) will be effectively viewed as a single file.
Impact: INFO
fromPosition
- The starting position from which to read the log for the given date. If null, then the total log length minus the given readLength is assumed (i.e. the tail of the logging output). The total log length is calculated by summing the size of all log files (current + previous versions.readLength
- The maximum amount of bytes to read from the given (or assumed) starting position. The max size for this value is 1Mb. If null, 200Kb is assumed.java.lang.String getLogFile()
setLogFile(java.lang.String)
java.lang.Long getLogFileRolloverSizeThreshold()
setLogFileRolloverSizeThreshold(java.lang.Long)
java.lang.Long getLogFileSize()
java.lang.Long getLogFileSizeThreshold()
setLogFileSizeThreshold(java.lang.Long)
java.lang.Integer getMaxPollingThreads()
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.Integer getMinPollingThreads()
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()
java.lang.Object invoke(java.lang.String configID, java.lang.String operationName, java.lang.Object[] operationParams, java.lang.String[] operationSignature, java.lang.Boolean sync, java.lang.Long timeout)
Invokes an operation on the given component collection. If synchronous execution is requested, returns the return values or exceptions of the individual requests to member of the collection. The return object is an aggregation of return values and/or exceptions wrapped in a ICollectiveOpStatus. Returns null if asynchronous execution is requested.
Impact: ACTION/INFO
configID
- The path to the component collection configuration (either storage or logical).operationName
- The name of the operation to invoke on each of the containers/components in the collection.operationParams
- The parameters to the operation.operationSignature
- The signature of the operation.sync
- If false, aynchronously invoke the operation on the collection and return null, otherwise build and return a collective result.timeout
- The time in milliseconds to wait for all responses to be received. The value should be greater than the request timeout value. The value is ignored if asynchronous execution is specified.void reload()
Asynchronously reload the component and restart the component if it was previously online.
Impact: ACTION
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()
void saveLogFile(java.lang.String filename)
Saves the contents of the centralized log file to the given file name.
Impact: ACTION
filename
- A valid filename (including path) to save the centralized log file to.void setAllowFailover(java.lang.Boolean value)
value
- When this Agent Manager is in a standby state and this attribute is set to 'false', fault tolerant failover to active will not occur.getAllowFailover()
ICollectiveOpStatus setAttribute(java.lang.String configID, java.lang.String attributeName, java.lang.Object attributeValue, java.lang.Boolean sync, java.lang.Long timeout)
Sets an attribute on the given component collection. If synchronous execution is requested, returns the return values or exceptions of the individual requests to member of the collection. Returns null if asynchronous execution is requested.
Impact: ACTION
configID
- The path to the component collection configuration (either storage or logical).attributeName
- The name of the attribute.attributeValue
- The value of the attribute.sync
- If false, aynchronously invoke the operation on the collection and return null, otherwise build and return a collective result.timeout
- The time in milliseconds to wait for all responses to be received. The value should be greater than the request timeout value. The value is ignored if asynchronous execution is specified.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 an AgentManager are:
AllowFailover
(java.lang.Boolean)
LogFile
(java.lang.String)
LogFileRolloverSizeThreshold
(java.lang.Long)
LogFileSizeThreshold
(java.lang.Long)
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[])
ICollectiveOpStatus setAttributes(java.lang.String configID, java.lang.String[] attributeNames, java.lang.Object[] attributeValues, java.lang.Boolean sync, java.lang.Long timeout)
Sets attributes on the given component collection. If synchronous execution is requested, returns the return values or exceptions of the individual requests to member of the collection. Returns null if asynchronous execution is requested.
Impact: ACTION
configID
- The path to the component collection configuration (either storage or logical).attributeNames
- The names of the attributes.attributeValues
- The values of the attributes.sync
- If false, aynchronously invoke the operation on the collection and return null, otherwise build and return a collective result.timeout
- The time in milliseconds to wait for all responses to be received. The value should be greater than the request timeout value. The value is ignored if asynchronous execution is specified.void setLogFile(java.lang.String value)
value
- The directory pathname of the centralized log file. Defaults to {getLogFile()
void setLogFileRolloverSizeThreshold(java.lang.Long value)
value
- If the current centralized log file size equals or exceeds this threshold at midnight, then the Agent Manager will roll over the old contents to an archive file and create a new empty centralized log file.getLogFileRolloverSizeThreshold()
void setLogFileSizeThreshold(java.lang.Long value)
value
- Once size of the the centralized log file reaches this threshold or for each time the size exceeds this threshold by a further 10%, the Agent Manager will send a warning notification.getLogFileSizeThreshold()
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 notifications.getRepeatMetricAlerts()
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()
void suspendActiveRole(java.lang.Integer seconds)
Relinquish the current active role to the the standby. For an active AM, this operation attempts to relinquish the active role to the current standby. The active AM will wait up to the given number of seconds for a standby to takeover the active role; if a standby does not takeover the active role in this period, the AM will continue its active role.
Impact: ACTION
seconds
- The minimum time the active role will be suspended.
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |