org.apache.uima.collection.impl.cpm.container.deployer.socket
Interface ProcessControllerAdapter


public interface ProcessControllerAdapter

Interface for the custom deployer component responsible for launching and terminating fenced CasProcessors.


Method Summary
 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:
- - Exception-Failure to start fenced CasProcessor
java.lang.Exception

undeploy

void undeploy(java.net.URL aURL)
Stops a given CasProcessor service.

Parameters:
- - aURL - service endpoint.


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.