public class VNSQuery
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
VNSQuery.VinciVNSQuery
Inner class used for accessing the VNS server.
|
Constructor and Description |
---|
VNSQuery(java.lang.String aVnsHost,
int aVnsPort)
Connects to a VNS server identified by host and port
|
Modifier and Type | Method and Description |
---|---|
static int |
findUnassigned(java.util.ArrayList oldList,
java.util.ArrayList newList)
Diffs two lists of services and returns those that have not yet been assigned
|
java.util.ArrayList |
getServices(java.lang.String aName)
Returns a list of services registered in the VNS and bound to a given name.
|
java.util.ArrayList |
getUnassignedServices(java.lang.String aName,
java.util.ArrayList assignedServices)
Returns a list of services that have not yet been assigned to any CPM proxy.
|
static void |
main(java.lang.String[] args) |
public VNSQuery(java.lang.String aVnsHost, int aVnsPort) throws java.lang.Exception
aVnsHost
- -
VNS host nameaVnsPort
- -
VNS port numberjava.lang.Exception
- -
when unable to connect to VNSpublic java.util.ArrayList getServices(java.lang.String aName) throws java.lang.Exception
aName
- -
name of the serviceVinciServiceInfo
instancesjava.lang.Exception
- -
unable to get a listpublic java.util.ArrayList getUnassignedServices(java.lang.String aName, java.util.ArrayList assignedServices) throws java.lang.Exception
aName
- -
name of the serviceassignedServices
- -
a list of services currently in useVinciServiceInfo
instancesjava.lang.Exception
- -
unable to get a listpublic static int findUnassigned(java.util.ArrayList oldList, java.util.ArrayList newList)
oldList
- -
current (in-use) list of servicesnewList
- -
new list of servicespublic static void main(java.lang.String[] args)
Copyright © 2013. All Rights Reserved.