|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.access.common.rmi.RMIClient
This class implements the client side of AccessServer's RMI interface. It incorporates its own caching for already requested expressions.
Method Summary | |
static RMIClient |
getSession(String user)
Returns a new RMIClient object representing a session with the remote AccessServer |
static void |
initialize(String[] server,
int invalidationTimeout,
int lruTimeout,
int sleepTime)
Initializes the RMI client system. |
static void |
initLogSystem(String level,
String logFile)
Initializes the logging system. |
boolean |
resolveExpr(String expression)
Evaluates one expression. |
static void |
shutdown()
Shuts down the cleaner thread of the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RMIClient getSession(String user) throws RMIClientException
user
- user the user for whom the session shall be used.
RMIClientException
- if anything goes wrongpublic static void initLogSystem(String level, String logFile)
level
- the name of the log-level. Valid are values are ALL
, DEBUG
,
INFO
, WARN
, ERROR
, FATAL
and
OFF
.logFile
- the name of the the log output shall be send to. If it is null or empty
System.out
will be used.public static void initialize(String[] server, int invalidationTimeout, int lruTimeout, int sleepTime)
server
- A list of servers to be requested. Each entry must have the format
localhost:54322
. If the port number is
ommited, RMIServerIf.DEFAULT_RMI_PORT
will be used.invalidationTimeout
- after this period of time any elements in the cache will be ignored to assure
that changes in the rights will be recognized.lruTimeout
- after this period of time an unused cache for a specific user will be deleted.
It does not make any sense to set this timeout higher than the invalidation timeout.sleepTime
- the time to sleep between to runs of the cache cleaner.public static void shutdown()
public boolean resolveExpr(String expression) throws RMIClientException, ParserException
expression
- the expression to evaluate
RMIClientException
- if anything goes wrong
RMIParserException
- if a ParserException occurs on the server side.
ParserException
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |