|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.service.dashboard.AbstractModel org.biomoby.service.dashboard.RegistryModel
public class RegistryModel
A real worker that supplies all data from a Biomoby registry (or
from a local cache) to various panels, especially to the RegistryPanel
and the RegistrationPanel
.
Field Summary | |
---|---|
static int |
PART_DATA_TYPES
|
static int |
PART_NAMESPACES
|
static int |
PART_SERVICE_TYPES
|
static int |
PART_SERVICES
|
Constructor Summary | |
---|---|
RegistryModel()
Default constructor. |
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). |
String |
callRegistry(String methodName,
File inputXML)
Call the given method (on worker) with data given in 'inputXML'. |
HashSet |
findInDataTypes(String searchText)
Return a HashSet filled with names of data types that have somewhere given 'searchText'. |
HashSet |
findInNamespaces(String searchText)
Return a HashSet filled with names of namespaces that have somewhere given 'searchText'. |
Set<String> |
findInServices(String searchText)
Return a Set filled with names of services that have somewhere given 'searchText'. |
Set<String> |
findInServiceTypes(String searchText)
Return a Set filled with names of service types that have somewhere given 'searchText'. |
void |
fireEvent(int type,
Object message,
Object details)
|
void |
fireEvent(NotificationEvent event)
|
String |
getCacheInfoFormatted()
|
MobyDataType |
getDataType(String dataTypeName)
|
MobyDataType[] |
getDataTypes(Object initiator)
Fetch data types (from a cache or from a registry). |
String |
getDefaultRegistryEndpoint()
Return an endpoint (a stringified URL) of a default Moby registry. |
String |
getDefaultRegistryNamespace()
Return a namespace (a URI) used by a default Moby registry. |
MobyNamespace |
getNamespace(String namespace)
|
MobyNamespace[] |
getNamespaces(Object initiator)
Fetch namespaces (from a cache or from a registry). |
NotificationListener[] |
getNotificationListeners()
Returns an array of all the NotificationListeners added to the class that implements this interface. |
String |
getRegisterDataTypeXML(MobyDataType dataType)
|
String |
getRegisterNamespaceXML(MobyNamespace namespace)
|
String |
getRegisterServiceTypeXML(MobyServiceType serviceType)
|
String |
getRegisterServiceXML(MobyService service)
|
MobyService |
getService(String combinedServiceName)
|
MobyService[] |
getServices(Object initiator)
Fetch services (from a cache or from a registry). |
MobyServiceType |
getServiceType(String serviceTypeName)
|
MobyServiceType[] |
getServiceTypes(Object initiator)
Fetch service types (from a cache or from a registry). |
void |
registerDataType(MobyDataType dataType)
|
void |
registerNamespace(MobyNamespace namespace)
|
void |
registerService(MobyService service)
|
void |
registerServiceType(MobyServiceType serviceType)
|
void |
reloadDataTypesCache()
|
void |
reloadNamespacesCache()
|
void |
reloadServicesCache()
|
void |
reloadServiceTypesCache()
|
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. |
boolean |
setVerbose(boolean enabled)
|
void |
unRegisterDataType(MobyDataType dataType)
|
void |
unRegisterNamespace(MobyNamespace namespace)
|
void |
unRegisterService(MobyService service)
|
void |
unRegisterServiceType(MobyServiceType serviceType)
|
void |
updateDataTypesCache()
|
void |
updateNamespacesCache()
|
void |
updateServicesCache()
|
void |
updateServiceTypesCache()
|
Methods inherited from class org.biomoby.service.dashboard.AbstractModel |
---|
setPropertyChannel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PART_SERVICES
public static final int PART_DATA_TYPES
public static final int PART_SERVICE_TYPES
public static final int PART_NAMESPACES
Constructor Detail |
---|
public RegistryModel()
Method Detail |
---|
public String getDefaultRegistryEndpoint()
public String getDefaultRegistryNamespace()
public boolean setVerbose(boolean enabled)
public String callRegistry(String methodName, File inputXML) throws MobyException
MobyException
public void registerDataType(MobyDataType dataType) throws MobyException
MobyException
public String getRegisterDataTypeXML(MobyDataType dataType) throws MobyException
MobyException
public void unRegisterDataType(MobyDataType dataType) throws MobyException
MobyException
public void updateDataTypesCache() throws MobyException
MobyException
public void reloadDataTypesCache() throws MobyException
MobyException
public MobyDataType[] getDataTypes(Object initiator) throws MobyException
MobyException
public MobyDataType getDataType(String dataTypeName) throws MobyException
MobyException
public HashSet findInDataTypes(String searchText) throws MobyException
MobyException
public void registerServiceType(MobyServiceType serviceType) throws MobyException
MobyException
public String getRegisterServiceTypeXML(MobyServiceType serviceType) throws MobyException
MobyException
public void unRegisterServiceType(MobyServiceType serviceType) throws MobyException
MobyException
public void updateServiceTypesCache() throws MobyException
MobyException
public void reloadServiceTypesCache() throws MobyException
MobyException
public MobyServiceType[] getServiceTypes(Object initiator) throws MobyException
MobyException
public MobyServiceType getServiceType(String serviceTypeName) throws MobyException
MobyException
public Set<String> findInServiceTypes(String searchText) throws MobyException
MobyException
public void registerNamespace(MobyNamespace namespace) throws MobyException
MobyException
public String getRegisterNamespaceXML(MobyNamespace namespace) throws MobyException
MobyException
public void unRegisterNamespace(MobyNamespace namespace) throws MobyException
MobyException
public void updateNamespacesCache() throws MobyException
MobyException
public void reloadNamespacesCache() throws MobyException
MobyException
public MobyNamespace[] getNamespaces(Object initiator) throws MobyException
MobyException
public MobyNamespace getNamespace(String namespace) throws MobyException
MobyException
public HashSet findInNamespaces(String searchText) throws MobyException
MobyException
public void registerService(MobyService service) throws MobyException
MobyException
public String getRegisterServiceXML(MobyService service) throws MobyException
MobyException
public void unRegisterService(MobyService service) throws MobyException
MobyException
public void updateServicesCache() throws MobyException
MobyException
public void reloadServicesCache() throws MobyException
MobyException
public MobyService[] getServices(Object initiator) throws MobyException
MobyException
public MobyService getService(String combinedServiceName) throws MobyException
MobyException
public Set<String> findInServices(String searchText) throws MobyException
MobyException
public String getCacheInfoFormatted() throws MobyException
MobyException
public void addNotificationListener(NotificationListener l)
Notifier
addNotificationListener
in interface Notifier
l
- notification listener to be addedpublic void addNotificationListeners(NotificationListener[] l)
Notifier
addNotificationListeners
in interface Notifier
l
- notification listeners to be addedpublic void removeNotificationListener(NotificationListener l)
Notifier
removeNotificationListener
in interface Notifier
l
- notification listener to be removedpublic void removeNotificationListeners(NotificationListener[] l)
Notifier
removeNotificationListeners
in interface Notifier
l
- notification listeners to be removedpublic NotificationListener[] getNotificationListeners()
Notifier
getNotificationListeners
in interface Notifier
public void callback(int signal)
Notifier
callback
in interface Notifier
signal
- 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 Notifier
public 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 |