Class DynamicProfileReloader

  • Direct Known Subclasses:
    ListenerProfileReloader, SenderProfileReloader

    public abstract class DynamicProfileReloader
    extends Object
    Abstract class to use as Profile Reloader Subscribers. FileUpdateNotificationHandler will notify this once the event is triggered.
    • Constructor Detail

      • DynamicProfileReloader

        public DynamicProfileReloader()
    • Method Detail

      • notifyFileUpdate

        public abstract void notifyFileUpdate​(boolean isScheduled)
      • getLastUpdatedtime

        public long getLastUpdatedtime()
        Returns Last Updated Time of the File
        Returns:
        Long time in milliseconds
      • getFilePath

        public String getFilePath()
        Returns File Path of the dynamic SSL profiles
        Returns:
        String file path
      • setFilePath

        public void setFilePath​(String filePath)
        Set file path
        Parameters:
        filePath - String file path
      • setLastUpdatedtime

        public void setLastUpdatedtime​(long lastUpdatedtime)
        Set Last Updated time of the file
        Parameters:
        lastUpdatedtime - Long time in milliseconds
      • isInvokedFromSchedule

        public boolean isInvokedFromSchedule()
        Check whether the file is invoked from scheduled task
        Returns:
        true if invoked from schedule, false otherwise
      • setInvokedFromSchedule

        public void setInvokedFromSchedule​(boolean invokedFromSchedule)
        Set whether the file is invoked from schedule
        Parameters:
        invokedFromSchedule - true if invoked from schedule, false otherwise
      • extractConfigurationFilePath

        protected String extractConfigurationFilePath​(org.apache.axis2.description.ParameterInclude transportOut)
        Set the configuration file path from custom SSL config
        Parameters:
        transportOut - TransportOutDescription of the configuration
        Returns:
        File Path String
      • extractSleepInterval

        protected long extractSleepInterval​(org.apache.axis2.description.ParameterInclude transportOut)
        Set SSL Profile configuration loading interval from Axis2 config
        Parameters:
        transportOut - TransportOutDescription of the configuration
        Returns:
        Long value of the interval in milliseconds
      • registerListener

        protected boolean registerListener​(org.apache.axis2.description.ParameterInclude transportDescription)
        Register this Profile Loader in FileUpdateNotificationHandler for notifications
        Parameters:
        transportDescription - Transport In/Out Description of the configuration
      • getClassName

        public String getClassName​(String completeClassName)
        Get actual class name from comprehensive class name
        Parameters:
        completeClassName - complete class name String
        Returns:
        instance name String