|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectPersistentSession
Class to keep persistent session data associated with a session identifier. The identifier is an integer and any object may be stored. A thread is created by this class to expire old session information.
| Constructor Summary | |
PersistentSession(String threadName)
Constructor. |
|
| Method Summary | |
void |
close()
Close the State session handler.. |
Object |
get(int sessionId)
See if the given entry is in a bucket. |
int |
getKey()
Get a session key. |
static void |
main(String[] arg)
Main class to test PersistentSession. |
int |
put(int idKey,
Object obj)
Put an object into the State session. |
int |
put(Object obj)
Put an object into the State session. |
void |
remove(int id)
Remove an entry. |
void |
run()
Cleaning thread. |
void |
setSinglePool()
Us a single pool for all State objects. |
void |
setTTL(int seconds)
Set the work data time to live in seconds. |
int |
size()
Get a count of persistent sessions. |
void |
startThread()
Start the cleaning thread. |
String |
toString()
String representation of the PersistentSession object. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PersistentSession(String threadName)
threadName - Name of the cleaning thread associated with the persistent session.| Method Detail |
public void close()
public Object get(int sessionId)
throws RADIUSServerException
sessionId - Session identifier for the session.
RADIUSServerException - if the PersistentSession has been disabled or
the sessionId cannot be found.public int getKey()
public static void main(String[] arg)
public int put(int idKey,
Object obj)
idKey - Identifier associating the State with the object.obj - Object to associate with the id.
public int put(Object obj)
obj - Object to associate with the id.
public void remove(int id)
id - Identifier value for this State attribute.public void run()
run in interface Runnablepublic void setSinglePool()
This wart is for those who need access to sessions from machines other than the one that requested it. This is not the normal mode of a RADIUS server's operation and can cause vulnerabilities.
public void setTTL(int seconds)
The default is 30 seconds. If you system always has faster response times this value can be lowered. This should be set to a little more than the longest expected response time. The granularity of the system is such that the average time for a packet will be 1/2 second less than the given value.
This method destroys the existing cache of packet information.
seconds - The time to live in seconds.public int size()
public void startThread()
public String toString()
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||