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