Interface ProcessControllerAdapter


  • public interface ProcessControllerAdapter
    Interface for the custom deployer component responsible for launching and terminating fenced CasProcessors.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.URL[] deploy​(java.lang.String aCasProcessorName, int howMany)
      Deploys given number of CasProcessors and returns their endpoint configuration( host,port).
      void undeploy​(java.net.URL aURL)
      Stops a given CasProcessor service.
    • Method Detail

      • deploy

        java.net.URL[] deploy​(java.lang.String aCasProcessorName,
                              int howMany)
                       throws java.lang.Exception
        Deploys given number of CasProcessors and returns their endpoint configuration( host,port). This method blocks until all Connections are resolved or an error occurs.
        Parameters:
        aCasProcessorName - -name of the fenced CasProcessor
        howMany - - how many CasProcessor instances to deploy
        Returns:
        URL[] - list of URLs containing endpoint info
        Throws:
        java.lang.Exception - Failure to start fenced CasProcessor
      • undeploy

        void undeploy​(java.net.URL aURL)
        Stops a given CasProcessor service.
        Parameters:
        aURL - - service endpoint.