|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.tools.cli.ServiceFinder
public class ServiceFinder
Find a service
| Nested Class Summary | |
|---|---|
class |
ServiceFinder.InfoFetcher
Used to fetch information about services |
static class |
ServiceFinder.InfoFetchStat
Simple data structure holding the service name, the time the fetch request began, and the time it ended |
class |
ServiceFinder.ServiceFilter
A ServiceItemFilter that filters on host names and attributes |
static class |
ServiceFinder.ServiceInfo
Class to hold a ServiceItem and the groups the service is a member of. |
class |
ServiceFinder.ServiceListener
A ServiceDiscoveryListener |
| Constructor Summary | |
|---|---|
ServiceFinder(String[] groups,
LookupLocator[] locators,
Configuration config)
Create a ServiceFinder |
|
| Method Summary | |
|---|---|
ServiceItem[] |
find(String[] machines,
Entry[] attrs)
Find all services |
ServiceItem[] |
findCybernodes(String[] machines,
Entry[] attrs)
Find all Cybernode services |
ServiceItem[] |
findMonitors(String[] machines,
Entry[] attrs)
Find all Monitor services |
ServiceItem[] |
findMonitors(String[] machines,
Entry[] attrs,
boolean verbose)
Find all Monitor services |
static ApplianceInfo |
getApplianceInfo(Entry[] attrs)
Get the ApplianceInfo attribute |
DiscoveryManagement |
getDiscoveryManagement()
Get DiscoveryManagement |
static Host |
getHost(Entry[] attrs)
Get the Host attribute |
static String |
getName(Entry[] attrs)
Get the name of the service from either the Name attribute or the ServiceInfo attribute |
Object |
getPreparedAdmin(Object proxy)
Get the Adminstrable proxy for a service, and prepare the returned proxy with the adminProxyPreparer |
ServiceFinder.ServiceInfo[] |
getServiceInfo()
Get all ServiceInfo |
void |
terminate()
Terminate the utility |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceFinder(String[] groups,
LookupLocator[] locators,
Configuration config)
throws IOException,
ConfigurationException
groups - The groups to discoverlocators - The LookupLocators to useconfig - The Configuration to set
IOException - If there are problems initializing discovery
ConfigurationException - If problems are encountered accessing
the configuration| Method Detail |
|---|
public void terminate()
public ServiceItem[] find(String[] machines,
Entry[] attrs)
machines - String array of machine names to filterattrs - An array of attributes to filter on
public ServiceItem[] findCybernodes(String[] machines,
Entry[] attrs)
machines - String array of machine names to filterattrs - An array of attributes to filter on
public ServiceItem[] findMonitors(String[] machines,
Entry[] attrs)
machines - String array of machine names to filterattrs - An array of attributes to filter on
public ServiceItem[] findMonitors(String[] machines,
Entry[] attrs,
boolean verbose)
machines - String array of machine names to filterattrs - An array of attributes to filter onverbose - For more output set to true
public DiscoveryManagement getDiscoveryManagement()
public ServiceFinder.ServiceInfo[] getServiceInfo()
public static String getName(Entry[] attrs)
attrs - Array of Entry attrbutes
public static Host getHost(Entry[] attrs)
attrs - Array of attributes
public static ApplianceInfo getApplianceInfo(Entry[] attrs)
attrs - An array of attributes to search
public Object getPreparedAdmin(Object proxy)
throws RemoteException
proxy - The service proxy
RemoteException - If errors occur
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||