|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.uas.client.MultiWSRFClient<RegistryClient>
de.fzj.unicore.uas.client.ExternalRegistryClient
public class ExternalRegistryClient
a client for querying and adding to a set of external registries.
By default, the lists of services do not contain duplicates.
You can change this behaviour using the setFilterDuplicates() method
MultiWSRFClient| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.fzj.unicore.uas.client.IRegistryQuery |
|---|
IRegistryQuery.ServiceListFilter |
| Field Summary | |
|---|---|
protected static long |
readd_offset
|
| Fields inherited from class de.fzj.unicore.uas.client.MultiWSRFClient |
|---|
clients, logger, MULTICAST, PRIMARY_WITH_BACKUP, ROUNDROBIN, ROUNDROBIN_RETRY_ON_FAILURE |
| Fields inherited from interface de.fzj.unicore.uas.client.IRegistryQuery |
|---|
STATUS_OK |
| Constructor Summary | |
|---|---|
ExternalRegistryClient()
|
|
| Method Summary | |
|---|---|
java.util.Calendar |
addRegistryEntry(org.oasisOpen.docs.wsrf.sg2.AddDocument in)
calls "add" on all configured external registries This method will return the shortest termination time returned by any of the external registries, or a default of 5 minutes in case no external registry can be contacted. |
boolean |
checkConnection()
check the connection to the services. |
boolean |
checkConnection(int timeout)
check the connection to the services. |
java.lang.String |
getConnectionStatus()
check the connection status to the service |
boolean |
isFilterDuplicates()
|
java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> |
listAccessibleServices(javax.xml.namespace.QName porttype)
list services implementing a given porttype that are accessible to the current client (using getCurrentTime() as test) |
java.util.List<org.oasisOpen.docs.wsrf.sg2.EntryType> |
listEntries()
List all the entries in all the registries. |
java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> |
listServices(javax.xml.namespace.QName porttype)
list services implementing a given porttype this uses XPath to query the registry, and relies on the entry having the structure
sg: ServiceGroupRP/sg:Entry/sg:MemberServiceEPR/ad:Metadata/meta:InterfaceName
with an ws addressing metadata entry listing the "final porttype" that the service implements |
java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> |
listServices(javax.xml.namespace.QName porttype,
IRegistryQuery.ServiceListFilter acceptFilter)
|
void |
setFilterDuplicates(boolean filterDuplicates)
|
| Methods inherited from class de.fzj.unicore.uas.client.MultiWSRFClient |
|---|
addClient, getErrorsOccurred, getInvocationHandler, getMaxRetries, makeProxy, removeClient, setGlobalRetryPolicy, setMaxRetries, setMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long readd_offset
| Constructor Detail |
|---|
public ExternalRegistryClient()
| Method Detail |
|---|
public java.util.Calendar addRegistryEntry(org.oasisOpen.docs.wsrf.sg2.AddDocument in)
in - - an AddDocument
public java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> listAccessibleServices(javax.xml.namespace.QName porttype)
throws java.lang.Exception
IRegistryQuery
listAccessibleServices in interface IRegistryQueryjava.lang.Exceptionpublic java.util.List<org.oasisOpen.docs.wsrf.sg2.EntryType> listEntries()
listEntries in interface IRegistryQuery
public java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> listServices(javax.xml.namespace.QName porttype,
IRegistryQuery.ServiceListFilter acceptFilter)
throws java.lang.Exception
listServices in interface IRegistryQueryporttype - - the porttypeacceptFilter - - for filtering the list
java.lang.Exception
public java.util.List<org.w3.x2005.x08.addressing.EndpointReferenceType> listServices(javax.xml.namespace.QName porttype)
throws java.lang.Exception
IRegistryQuery
sg: ServiceGroupRP/sg:Entry/sg:MemberServiceEPR/ad:Metadata/meta:InterfaceName
with an ws addressing metadata entry listing the "final porttype" that the service implements
listServices in interface IRegistryQueryjava.lang.Exceptionpublic boolean checkConnection()
false
checkConnection in interface IRegistryQuerytimeout - - connection timeout in milliseconds
public boolean checkConnection(int timeout)
false
checkConnection in interface IRegistryQuerytimeout - - connection timeout in milliseconds
public java.lang.String getConnectionStatus()
IRegistryQuery
getConnectionStatus in interface IRegistryQuerypublic boolean isFilterDuplicates()
public void setFilterDuplicates(boolean filterDuplicates)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||