|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.client.CentralImpl
org.biomoby.client.CentralDigestImpl
public class CentralDigestImpl
A default implementation of CentralDigest to get (also) cumulated data from
a Moby registry.
| Field Summary |
|---|
| Fields inherited from class org.biomoby.client.CentralImpl |
|---|
CENTRAL_IMPL_RESOURCE_NAME, DEFAULT_CENTRAL_IMPL_CLASSNAME, DEFAULT_ENDPOINT, DEFAULT_NAMESPACE, DOCUMENT_BUILDER_FACTORIES |
| Fields inherited from interface org.biomoby.shared.Central |
|---|
DATA_TYPES_RESOURCE_NAME, FULL_RESOURCE_NAME, HAS, HASA, iHAS, iHASA, iISA, ISA, NAMESPACES_RESOURCE_NAME, SERVICE_INSTANCES_RESOURCE_NAME, SERVICE_TYPES_RESOURCE_NAME |
| Constructor Summary | |
|---|---|
CentralDigestImpl()
Default constructor. |
|
CentralDigestImpl(String endpoint)
Constructor allowing to specify which Moby Registry to use. |
|
CentralDigestImpl(String endpoint,
String namespace)
Constructor allowing to specify which Moby Registry and what namespace to use. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener l)
Adds the specified notification listener to receive notification events from the class that implements this interface. |
void |
addNotificationListeners(NotificationListener[] l)
Adds the specified notification listeners to receive notification events from the class that implements this interface. |
void |
callback(int signal)
Call the notifier and signal that it can stop loading data (or whatever it is doing). |
void |
fireEvent(int type,
Object message,
Object details)
|
void |
fireEvent(NotificationEvent event)
|
MobyDataType[] |
getDataTypes()
Get definition of all known data types. |
MobyNamespace[] |
getFullNamespaces()
Parses and imports the following XML. |
MobyServiceType[] |
getFullServiceTypes()
Get definition of all known service types. |
NotificationListener[] |
getNotificationListeners()
Returns an array of all the NotificationListeners added to the class that implements this interface. |
MobyService[] |
getServices()
Get definition of all registered service instances. |
void |
removeNotificationListener(NotificationListener l)
Removes the specified notification listener so that it no longer receives notification events from the class that implements this interface. |
void |
removeNotificationListeners(NotificationListener[] l)
Removes the specified notification listeners so that they no longer receive notification events from the class that implements this interface. |
void |
setCacheMode(boolean shouldCache)
Methods re-writing the same methods from the superclass. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CentralDigestImpl()
throws MobyException
CentralImpl.DEFAULT_ENDPOINT) using a default namespace
(as defined int CentralImpl.DEFAULT_NAMESPACE).
MobyException
public CentralDigestImpl(String endpoint)
throws MobyException
MobyException
public CentralDigestImpl(String endpoint,
String namespace)
throws MobyException
MobyException| Method Detail |
|---|
public void setCacheMode(boolean shouldCache)
setCacheMode in interface CentralsetCacheMode in class CentralImplshouldCache - whether retrieveXXX call results should be
cached in case they are called again (i.e. don't request
MobyCentral every time)
public MobyDataType[] getDataTypes()
throws MobyException
CentralDigestCentral.getDataType(java.lang.String) for all
registered data type names.
getDataTypes in interface CentralgetDataTypes in interface CentralDigestgetDataTypes in class CentralImplMobyException - if communication with the Moby Registry fails
public MobyServiceType[] getFullServiceTypes()
throws MobyException
CentralDigestCentral.getServiceTypes() because it returns an array of
full definitions of service types, and not just their names and
descriptions.
getFullServiceTypes in interface CentralDigestMobyException - if communication with the Moby Registry fails
public MobyNamespace[] getFullNamespaces()
throws MobyException
CentralImpl
<Namespaces>
<Namespace name="namespace" lsid="...">
<Description><![CDATA[free text description here]]></Description>
<contactEmail>...</contactEmail>
<authURI>...</authURI>
</Namespace>
...
...
</Namespaces>
getFullNamespaces in interface CentralgetFullNamespaces in class CentralImplMobyException - if communication with the Moby Registry fails
public MobyService[] getServices()
throws MobyException
CentralDigestfindService by name for all
known service names.
getServices in interface CentralDigestMobyException - if communication with the Moby Registry failspublic void addNotificationListener(NotificationListener l)
Notifier
addNotificationListener in interface Notifierl - notification listener to be addedpublic void addNotificationListeners(NotificationListener[] l)
Notifier
addNotificationListeners in interface Notifierl - notification listeners to be addedpublic void removeNotificationListener(NotificationListener l)
Notifier
removeNotificationListener in interface Notifierl - notification listener to be removedpublic void removeNotificationListeners(NotificationListener[] l)
Notifier
removeNotificationListeners in interface Notifierl - notification listeners to be removedpublic NotificationListener[] getNotificationListeners()
Notifier
getNotificationListeners in interface Notifierpublic void callback(int signal)
Notifier
callback in interface Notifiersignal - identifies what to stop doing (some usual
values of this signal are defined elsewhere in this interface
with names starting by SIGNAL_)
public void fireEvent(int type,
Object message,
Object details)
fireEvent in interface Notifierpublic void fireEvent(NotificationEvent event)
fireEvent in interface Notifier
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||