|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.jini.lookup.AbstractCachingServiceClient<S>
com.bigdata.service.jini.lookup.BigdataCachingServiceClient<IDataService>
com.bigdata.service.jini.lookup.DataServicesClient
public class DataServicesClient
Class handles discovery, caching, and local lookup of IDataServices
and IMetadataServices.
Note: Since IMetadataService extends IDataService this class
uses ServiceItemFilters as necessary to exclude IDataServices
or IMetadataServices from responses.
| Field Summary |
|---|
| Fields inherited from class com.bigdata.service.jini.lookup.AbstractCachingServiceClient |
|---|
cacheMissTimeout, filter, log, lookupCache, serviceCache, template |
| Constructor Summary | |
|---|---|
DataServicesClient(JiniFederation fed,
long timeout)
|
|
| Method Summary | |
|---|---|
IDataService |
getDataService()
Return an arbitrary IDataService instance from the cache -or-
null if there is none in the cache and a remote lookup
times out. |
IDataService |
getDataService(UUID serviceUUID)
Return the proxy for an IDataService from the local cache. |
IDataService |
getDataServiceByName(String name)
Return an arbitrary IDataService having the specified service
name on an Entry for that service. |
UUID[] |
getDataServiceUUIDs(int maxCount)
Return an array UUIDs for IDataServices. |
IMetadataService |
getMetadataService()
Return an arbitrary IMetadataService from the cache -or-
null if there is none in the cache and a remote lookup
times out. |
IMetadataService |
getMetadataService(UUID serviceUUID)
Return the proxy for an IMetadataService from the local cache. |
| Methods inherited from class com.bigdata.service.jini.lookup.AbstractCachingServiceClient |
|---|
destroyDiscoveredServices, destroyService, getLookupCache, getService, getService, getServiceCache, getServiceDiscoveryManager, getServiceItem, getServiceItem, getServiceItems, getServiceUUIDs, shutdownDiscoveredServices, shutdownService, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataServicesClient(JiniFederation fed,
long timeout)
throws RemoteException
RemoteException| Method Detail |
|---|
public final IDataService getDataService()
IDataService instance from the cache -or-
null if there is none in the cache and a remote lookup
times out. This method will NOT return an IMetadataService.
public final IMetadataService getMetadataService()
IMetadataService from the cache -or-
null if there is none in the cache and a remote lookup
times out. This method will NOT return an IDataService unless it
also implements IMetadataService.
public IDataService getDataService(UUID serviceUUID)
IDataService from the local cache.
serviceUUID - The UUID for the IDataService.
null if the UUID does not
identify a known IDataService.
IllegalArgumentException - if serviceUUID is null.
RuntimeException - if serviceUUID identifies an IMetadataService.public IMetadataService getMetadataService(UUID serviceUUID)
IMetadataService from the local cache.
serviceUUID - The UUID for the IMetadataService.
null if the UUID does not
identify a known IMetadataService.
IllegalArgumentException - if serviceUUID is null.
RuntimeException - if serviceUUID identifies a IDataService.public UUID[] getDataServiceUUIDs(int maxCount)
UUIDs for IDataServices.
maxCount - The maximum #of data services whose UUID will be
returned. When zero (0) the UUID for all known data
services will be returned.
UUIDs for data services.public IDataService getDataServiceByName(String name)
IDataService having the specified service
name on an Entry for that service.
name - The service name.
IDataService -or- null if there is
none in the cache and a remote lookup times out.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||