|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.ModuleClass
src.modules.LedigaModule
Provides an interface for running datan -lediga commands on kth's machines to find out if there are free terminals in a certain room. Example:
| Constructor Summary | |
LedigaModule()
Constructor for ZLocate. |
|
| Method Summary | |
java.lang.String |
doDatanCommand(java.lang.String param)
Performs a datan command with the specified parameters and returns the result. |
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. |
| Methods inherited from class src.server.ModuleClass |
getModuleMeta, processSettingRequest, processSettingRequest, setModuleMeta |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LedigaModule()
| Method Detail |
public boolean isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Module
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)
Module
query - The user sent query.
public java.lang.String doDatanCommand(java.lang.String param)
param - The parameter to send to the command.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||