Package wt.fv

Interface FvMountValidatorMBean

All Superinterfaces:
SelfEmailingMBean

public interface FvMountValidatorMBean extends SelfEmailingMBean
The interface 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 Details

    • NOT_VALID_MOUNT_NOTIF_TYPE

      static final String 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 host
      verificationString - A string that will be used to mark the verification file
      fileserverOnCloud - 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

      void setLoggerLevel(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: 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 for
      forceImmediateValidation - boolean that decides whether to force validation or return previous validation status
      Throws:
      Exception
    • resetFvMountValidationStatistics

      @MBeanOperationImpact(1) void 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

      @MBeanOperationImpact(0) CompositeData getOverAllFvMountValidationStatus() throws Exception
      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

      void setFvMountValidationIntervalSeconds(int fvMountValidationIntervalSeconds) throws Exception
      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