|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the interface for modules. A module is something that provides a service on the server. It can be queried and have event triggered. A simple module could for instance be a clock that returns the current time as a result of any query. Also it could register an event in EventHandler and send users messages at certain times.
| Method Summary | |
ModuleMeta |
getModuleMeta()
Get the module meta data. |
boolean |
isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Checks if a cached result is valid or not based on how long ago the result was cached. |
Package |
processQuery(ModuleQuery query)
Process a user sent query. |
Package |
processSettingRequest(QueryPackage query)
Handles a given setting request. |
void |
setModuleMeta(ModuleMeta m)
Set the module meta data. |
| Method Detail |
public boolean isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
query - The user query that resulted in the cached result. The
user's query parameters are identical to the cached query parameters.cachedUserId - The userId of the query that is cached.cacheAge - The number of seconds that has elapsed since the cached
version was cached.
public Package processQuery(ModuleQuery query)
query - The user sent query.
public Package processSettingRequest(QueryPackage query)
query - The setting request. Needs to have parameters settingName and settingValue.
public ModuleMeta getModuleMeta()
public void setModuleMeta(ModuleMeta m)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||