|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject net.dpml.station.server.DefaultModel net.dpml.station.server.RemoteApplicationRegistry
Implements of the application registry within which a set of application profiles are maintained.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface net.dpml.station.ApplicationRegistry |
DEFAULT_STORAGE_URI |
Constructor Summary | |
RemoteApplicationRegistry(Logger logger,
URL url)
Creation of a new application registry model. |
Method Summary | |
void |
addApplicationDescriptor(String key,
ApplicationDescriptor descriptor)
Add an application descriptor to the registry. |
void |
addRegistryListener(RegistryListener listener)
Add a depot content change listener. |
void |
flush()
Flush the state of the server to external storage. |
ApplicationDescriptor |
getApplicationDescriptor(String key)
Retrieve an application profile. |
int |
getApplicationDescriptorCount()
Return the number of application descriptors in the registry. |
ApplicationDescriptor[] |
getApplicationDescriptors()
Return an array of all profiles in the registry. |
String[] |
getKeys()
Return the array of application keys. |
protected void |
processEvent(EventObject event)
Proces a registry event. |
void |
removeApplicationDescriptor(String key)
Remove an application descriptor from the registry. |
void |
removeRegistryListener(RegistryListener listener)
Add a registry change listener. |
String |
toString()
Return a string representation of the registy model. |
void |
updateApplicationDescriptor(String key,
ApplicationDescriptor descriptor)
Replace an application descriptor within the registry with a supplied descriptor. |
Methods inherited from class net.dpml.station.server.DefaultModel |
addListener, enqueueEvent, enqueueEvent, getLock, getLogger, listeners, removeListener |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RemoteApplicationRegistry(Logger logger, URL url) throws Exception
logger
- the assigned logging channelurl
- storage location
Exception
- if an error occursMethod Detail |
public String[] getKeys()
getKeys
in interface ApplicationRegistry
public int getApplicationDescriptorCount()
getApplicationDescriptorCount
in interface ApplicationRegistry
public void addApplicationDescriptor(String key, ApplicationDescriptor descriptor) throws DuplicateKeyException
addApplicationDescriptor
in interface ApplicationRegistry
key
- the application keydescriptor
- the application descriptor
DuplicateKeyException
- if the key is already assignedpublic void removeApplicationDescriptor(String key) throws UnknownKeyException
removeApplicationDescriptor
in interface ApplicationRegistry
key
- the application key
UnknownKeyException
- if the key is not recognizedpublic void updateApplicationDescriptor(String key, ApplicationDescriptor descriptor) throws UnknownKeyException
updateApplicationDescriptor
in interface ApplicationRegistry
key
- the application keydescriptor
- the updated application descriptor
UnknownKeyException
- if the key is not recognizedpublic ApplicationDescriptor[] getApplicationDescriptors()
getApplicationDescriptors
in interface ApplicationRegistry
public ApplicationDescriptor getApplicationDescriptor(String key) throws UnknownKeyException
getApplicationDescriptor
in interface ApplicationRegistry
key
- the application profile key
UnknownKeyException
- if the key is unknownpublic void flush() throws IOException
flush
in interface ApplicationRegistry
IOException
- if an I/O error occurspublic void addRegistryListener(RegistryListener listener)
addRegistryListener
in interface ApplicationRegistry
listener
- the registry change listener to addpublic void removeRegistryListener(RegistryListener listener)
removeRegistryListener
in interface ApplicationRegistry
listener
- the registry change listener to addprotected void processEvent(EventObject event)
processEvent
in class DefaultModel
event
- the event top processpublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |