Class VNSQuery.VinciVNSQuery
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.container.deployer.vns.VNSQuery.VinciVNSQuery
-
- Enclosing class:
- VNSQuery
public class VNSQuery.VinciVNSQuery extends java.lang.ObjectInner class used for accessing the VNS server.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BaseClientvnsConnectionprivate java.lang.StringvnsHostprivate intvnsPort
-
Constructor Summary
Constructors Constructor Description VinciVNSQuery(java.lang.String aVnsHost, int aVnsPort)Establishes connection to a given VNS server
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private VinciServiceInfogetServiceInfo(VinciFrame aServiceFrame)Copy service information from Vinci frame.java.util.ArrayListgetVinciServices(java.lang.String aVinciServiceName)Returns a list of services bound to a given name.
-
-
-
Field Detail
-
vnsHost
private java.lang.String vnsHost
-
vnsPort
private int vnsPort
-
vnsConnection
BaseClient vnsConnection
-
-
Constructor Detail
-
VinciVNSQuery
public VinciVNSQuery(java.lang.String aVnsHost, int aVnsPort) throws java.lang.ExceptionEstablishes 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:
java.lang.Exception- - unable to connect to VNS
-
-
Method Detail
-
getVinciServices
public java.util.ArrayList getVinciServices(java.lang.String aVinciServiceName) throws java.lang.ExceptionReturns 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:
java.lang.Exception- - error while looking up the service
-
getServiceInfo
private VinciServiceInfo getServiceInfo(VinciFrame aServiceFrame)
Copy service information from Vinci frame.- Parameters:
aServiceFrame- - Vinci frame containing service info
-
-