|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerDataEventListener
The ServerDataEventListener interface reacts on the events that a ServerDataProvider could fire if the server configuration was changed. Events allow improve the performance and resource management in JCo server management. If a server data provider claims to support the events, JCo actually relies on them and does no longer check the properties for changes when accessing a server, i.e. if there is no event JCo assumes that the server configuration haven't changed.
If the ServerDataProvider implementation is not able to support the events, JCo retrieves the server configuration each time it is requested although the JCo runtime already knows the server configuration. Then the server configuration will be compared with the cached one as if an update event had occurred. If the data retrieved from the ServerDataProvider is different from the cached data, JCo replaces the cached data with the new configuration data.
Note: Implementation for this interface is provided by JCo runtime. If ServerDataProvider returns true from supportsEvents(), JCo registers the implementation for this interface via setServerDataEventListener() API.
ServerDataProvider
Method Summary | |
---|---|
void |
deleted(java.lang.String serverName)
This event needs to be fired, if a server configuration was deleted. |
void |
updated(java.lang.String serverName)
This event needs to be fired, if a server configuration was updated. |
Method Detail |
---|
void deleted(java.lang.String serverName)
serverName
- name of the server configuration that has been deletedvoid updated(java.lang.String serverName)
serverName
- name of the server configuration that has been changedJCoServer.isValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |