Package wt.fv
Interface FvMountValidatorMBean
- All Superinterfaces:
SelfEmailingMBean
The interface
This class extends SelfAwareMBean and it can pass the message between the MethodServers present with the help of JMX in the cluster to invoke the mount validation wrt provided MountInfo presentation of FvMount objects.
In case of mount validation validation to be invoked at the replica site, the mount validation results i.e. the status are collected and send immediately back to the MasterSite on the same HTTP request which has arrived to validate mounts.
And in case of mount validation invoked at the Main Site,mount vaidation result i.e. the status is collected from each of the method server in the cluster as and when the validation completes on them.
Supported API: true
Extendable: false
FvMountValidatorMBean provides the mechanism to validate the mounts between FvFolders/RemoteFolders and FvHosts
and validating these mounts across Method Servers i.e. Foreground and Background method servers(except on ServerManagers and MasterCache)
It allows to pass the message to validate mounts to applicable site i.e. may it be Main Site or onto the replica site if the mounts are
present on the replica site.This class extends SelfAwareMBean and it can pass the message between the MethodServers present with the help of JMX in the cluster to invoke the mount validation wrt provided MountInfo presentation of FvMount objects.
In case of mount validation validation to be invoked at the replica site, the mount validation results i.e. the status are collected and send immediately back to the MasterSite on the same HTTP request which has arrived to validate mounts.
And in case of mount validation invoked at the Main Site,mount vaidation result i.e. the status is collected from each of the method server in the cluster as and when the validation completes on them.
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringType of notification produced when a site is validated and some of the mounts are found to be NOT VALID. -
Method Summary
Modifier and TypeMethodDescriptionintInterval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: truelongInterval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: truegetFvMountValidationStatus(String siteURLString, boolean forceImmediateValidation) Get site status string for a given site URL
Supported API: truePing result logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: trueName of ping result logger
Supported API: trueGet site status string for all sites with the last mount validation status.getOverAllFvMountValidationStatus(boolean forceImmediateValidation) Get site status string for all sites.voidReset cumulative statistics
Supported API: truevoidsetFvMountValidationIntervalSeconds(int fvMountValidationIntervalSeconds) Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: truevoidsetFvMountValidationNotificationIntervalHour(long fvMountValidationIntervalSeconds) Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: truevoidsetLoggerLevel(String level) Ping result logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: truevalidateMountOnThisMethodServer(List mountList, Long verificationTime, Boolean fileserverOnCloud) Validate the mounts applicable on this MethodServer.Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Field Details
-
NOT_VALID_MOUNT_NOTIF_TYPE
Type of notification produced when a site is validated and some of the mounts are found to be NOT VALID.
Supported API: true
-
-
Method Details
-
validateMountOnThisMethodServer
HashMap validateMountOnThisMethodServer(List mountList, Long verificationTime, Boolean fileserverOnCloud) throws Exception Validate the mounts applicable on this MethodServer.
Supported API: true- Parameters:
mountList- A list of MountInfo to be validated on this hostverificationString- A string that will be used to mark the verification filefileserverOnCloud- A boolean that will be used to validate the mounts on current host- Returns:
- mountStatusMap A map between mount and its validation status if applicable on this MethodServer.
- Throws:
Exception
-
getLoggerName
String getLoggerName()Name of ping result logger
Supported API: true -
getLoggerLevel
String getLoggerLevel()Ping result logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
setLoggerLevel
Ping result logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
getFvMountValidationStatus
@MBeanOperationImpact(0) CompositeData getFvMountValidationStatus(String siteURLString, boolean forceImmediateValidation) throws Exception Get site status string for a given site URL
Supported API: true- Parameters:
siteURLString- URL of site to get status forforceImmediateValidation- boolean that decides whether to force validation or return previous validation status- Throws:
Exception
-
resetFvMountValidationStatistics
Reset cumulative statistics
Supported API: true -
getOverAllFvMountValidationStatus
@MBeanOperationImpact(0) CompositeData getOverAllFvMountValidationStatus(boolean forceImmediateValidation) throws Exception Get site status string for all sites.
Supported API: true- Parameters:
forceImmediateValidation- boolean that decides whether to force validation or return previous validation status- Throws:
Exception
-
getOverAllFvMountValidationStatus
Get site status string for all sites with the last mount validation status.
Supported API: true- Throws:
Exception
-
getFvMountValidationIntervalSeconds
int getFvMountValidationIntervalSeconds()Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: true -
setFvMountValidationIntervalSeconds
Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: true- Throws:
Exception
-
getFvMountValidationNotificationIntervalHour
long getFvMountValidationNotificationIntervalHour()Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: true -
setFvMountValidationNotificationIntervalHour
void setFvMountValidationNotificationIntervalHour(long fvMountValidationIntervalSeconds) Interval at which FvMounts are validated (in seconds); periodic tries will be disabled if this is non-positive
Supported API: true
-