Class VNSQuery.VinciVNSQuery
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.vns.VNSQuery.VinciVNSQuery
- Enclosing class:
VNSQuery
Inner class used for accessing the VNS server.
-
Constructor Summary
ConstructorDescriptionVinciVNSQuery
(String aVnsHost, int aVnsPort) Establishes connection to a given VNS server -
Method Summary
Modifier and TypeMethodDescriptiongetVinciServices
(String aVinciServiceName) Returns a list of services bound to a given name.
-
Constructor Details
-
VinciVNSQuery
Establishes connection to a given VNS server- Parameters:
aVnsHost
- - name of the host where the VNS is runningaVnsPort
- - port on which the VNS is listening- Throws:
Exception
- - unable to connect to VNS
-
-
Method Details
-
getVinciServices
Returns a list of services bound to a given name. It ONLY returns those services that are actually running. The VNS may return services that are stale. Those will be filtered out.- Parameters:
aVinciServiceName
- - name of the service- Returns:
- - list of services bound to a given name.
- Throws:
Exception
- - error while looking up the service
-