Class GenericWatchdogGovernanceActionConnector

    • Constructor Detail

      • GenericWatchdogGovernanceActionConnector

        public GenericWatchdogGovernanceActionConnector()
    • Method Detail

      • diffProperties

        protected String diffProperties​(ElementProperties oldProperties,
                                        ElementProperties newProperties)
        Return a comma separated list of properties that have changed. This is saved in the request parameters and can be retrieved by the receiving governance service. The changed properties can be retrieved by the StringTokenizer class.
        Parameters:
        oldProperties - original property values
        newProperties - new property values
        Returns:
        comma separated list of property names where the value has changed
      • initiateProcess

        protected void initiateProcess​(String processName,
                                       Map<String,​String> requestParameters,
                                       List<NewActionTarget> actionTargets)
                                throws GovernanceServiceException
        Initiates the request for the new process to start if a process name has been configured.
        Parameters:
        processName - name of the process to start
        requestParameters - parameters to pass to the process
        actionTargets - the elements that this process should work on
        Throws:
        GovernanceServiceException - unable to start the process
      • disconnect

        public void disconnect()
                        throws ConnectorCheckedException
        Disconnect is called either because this governance action service called governanceContext.recordCompletionStatus() or the administer requested this governance action service stop running or the hosting server is shutting down. If disconnect completes before the governance action service records its completion status then the governance action service is restarted either at the administrator's request or the next time the server starts. If you do not want this governance action service restarted, be sure to record the completion status in disconnect(). The disconnect() method is a standard method from the Open Connector Framework (OCF). If you need to override this method be sure to call super.disconnect() in your version.
        Overrides:
        disconnect in class WatchdogGovernanceActionService
        Throws:
        ConnectorCheckedException - there is a problem within the governance action service.