|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ejb.base.sfsb.util.SimpleKeyGenerator
com.sun.ejb.base.sfsb.util.ScrambledKeyGenerator
public class ScrambledKeyGenerator
A utility class that generates stateful session keys using two longs The session id generated by this class is guarenteed to be unique as long as the system clock is never reset to a previous value The hashCode of the SessionKey generated by ScrambledKeyGenerator also allows uniform distribution of keys when hashed in a HashMap
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.ejb.base.sfsb.util.SimpleKeyGenerator |
|---|
SimpleKeyGenerator.SimpleSessionKey |
| Field Summary |
|---|
| Fields inherited from class com.sun.ejb.base.sfsb.util.SimpleKeyGenerator |
|---|
idCounter, prefix, suffix |
| Constructor Summary | |
|---|---|
ScrambledKeyGenerator()
|
|
ScrambledKeyGenerator(byte[] ipAddress,
int port)
|
|
ScrambledKeyGenerator(long val)
|
|
| Method Summary | |
|---|---|
SimpleKeyGenerator.SimpleSessionKey |
createSessionKey()
Create and return the sessionKey. |
| Methods inherited from class com.sun.ejb.base.sfsb.util.SimpleKeyGenerator |
|---|
byteArrayToKey, keyToByteArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrambledKeyGenerator()
public ScrambledKeyGenerator(byte[] ipAddress,
int port)
public ScrambledKeyGenerator(long val)
| Method Detail |
|---|
public SimpleKeyGenerator.SimpleSessionKey createSessionKey()
createSessionKey in interface SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>createSessionKey in class SimpleKeyGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||