public class SimpleKeyGenerator extends Object implements SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>, org.glassfish.ha.store.util.KeyTransformer<SimpleKeyGenerator.SimpleSessionKey>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleKeyGenerator.SimpleSessionKey |
| Modifier and Type | Field and Description |
|---|---|
protected int |
idCounter |
protected long |
prefix |
protected long |
suffix |
| Constructor and Description |
|---|
SimpleKeyGenerator() |
SimpleKeyGenerator(byte[] ipAddress,
int port) |
SimpleKeyGenerator(long uniquePrefix) |
| Modifier and Type | Method and Description |
|---|---|
SimpleKeyGenerator.SimpleSessionKey |
byteArrayToKey(byte[] array,
int startIndex,
int len)
Return the sessionKey that represents the sessionKey.
|
SimpleKeyGenerator.SimpleSessionKey |
createSessionKey()
Create and return the sessionKey.
|
byte[] |
keyToByteArray(SimpleKeyGenerator.SimpleSessionKey key)
Called from the Container before publishing an IOR.
|
protected long prefix
protected long suffix
protected int idCounter
public SimpleKeyGenerator()
public SimpleKeyGenerator(byte[] ipAddress,
int port)
public SimpleKeyGenerator(long uniquePrefix)
public SimpleKeyGenerator.SimpleSessionKey createSessionKey()
createSessionKey in interface SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>public byte[] keyToByteArray(SimpleKeyGenerator.SimpleSessionKey key)
keyToByteArray in interface SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>keyToByteArray in interface org.glassfish.ha.store.util.KeyTransformer<SimpleKeyGenerator.SimpleSessionKey>public SimpleKeyGenerator.SimpleSessionKey byteArrayToKey(byte[] array, int startIndex, int len)
byteArrayToKey in interface SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>byteArrayToKey in interface org.glassfish.ha.store.util.KeyTransformer<SimpleKeyGenerator.SimpleSessionKey>Copyright © 2019. All rights reserved.