|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.web.ha.session.management.CompositeMetadata
public final class CompositeMetadata
A class to hold a collection of children SessionAttributeMetadata. This class is used mainly to store a collection of AttributeMetaData that are part of a WebSession. The metadata about the web session itself can be obtained directly from the CompositeMetadata itself, while the metadata of its attributes can be obtained from the individual SessionAttributeMetadata that is part of the collection returned by getEntries().
| Constructor Summary | |
|---|---|
CompositeMetadata()
Every Storeable must have a public no arg constructor |
|
CompositeMetadata(long version,
long lastAccessTime,
long maxInactiveInterval,
java.util.Collection<SessionAttributeMetadata> entries,
byte[] state,
java.lang.String stringExtraParam)
Construct a CompositeMetadata object |
|
| Method Summary | |
|---|---|
java.lang.String[] |
_storeable_getAttributeNames()
|
boolean[] |
_storeable_getDirtyStatus()
|
long |
_storeable_getLastAccessTime()
|
long |
_storeable_getMaxIdleTime()
|
long |
_storeable_getVersion()
|
void |
_storeable_readState(java.io.InputStream is)
|
void |
_storeable_setLastAccessTime(long lastAccessTime)
|
void |
_storeable_setMaxIdleTime(long maxInactiveInterval)
|
void |
_storeable_setVersion(long version)
|
void |
_storeable_writeState(java.io.OutputStream os)
|
java.util.Collection<SessionAttributeMetadata> |
getEntries()
Returns a collection of Metadata (or its subclass). |
java.util.Map<java.lang.String,byte[]> |
getSessionAttributes()
|
byte[] |
getState()
|
java.lang.String |
getStringExtraParam()
|
long |
getVersion()
|
void |
setState(byte[] state)
|
void |
setStringExtraParam(java.lang.String stringExtraParam)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeMetadata()
public CompositeMetadata(long version,
long lastAccessTime,
long maxInactiveInterval,
java.util.Collection<SessionAttributeMetadata> entries,
byte[] state,
java.lang.String stringExtraParam)
version - The version of the data. A freshly created state has a version ==
0lastAccessTime - the last access time of the state. This must be used in
conjunction with getMaxInactiveInterval to determine if the
state is idle enough to be removed.maxInactiveInterval - the maximum time that this state can be idle in the store
before it can be removed.entries - the SessionAttributeMetadata that are part of this Metadata| Method Detail |
|---|
public byte[] getState()
public void setState(byte[] state)
public java.lang.String getStringExtraParam()
public void setStringExtraParam(java.lang.String stringExtraParam)
public java.util.Map<java.lang.String,byte[]> getSessionAttributes()
public java.util.Collection<SessionAttributeMetadata> getEntries()
public long getVersion()
public long _storeable_getVersion()
_storeable_getVersion in interface org.glassfish.ha.store.api.Storeablepublic void _storeable_setVersion(long version)
_storeable_setVersion in interface org.glassfish.ha.store.api.Storeablepublic long _storeable_getLastAccessTime()
_storeable_getLastAccessTime in interface org.glassfish.ha.store.api.Storeablepublic void _storeable_setLastAccessTime(long lastAccessTime)
_storeable_setLastAccessTime in interface org.glassfish.ha.store.api.Storeablepublic long _storeable_getMaxIdleTime()
_storeable_getMaxIdleTime in interface org.glassfish.ha.store.api.Storeablepublic void _storeable_setMaxIdleTime(long maxInactiveInterval)
_storeable_setMaxIdleTime in interface org.glassfish.ha.store.api.Storeablepublic java.lang.String[] _storeable_getAttributeNames()
_storeable_getAttributeNames in interface org.glassfish.ha.store.api.Storeablepublic boolean[] _storeable_getDirtyStatus()
_storeable_getDirtyStatus in interface org.glassfish.ha.store.api.Storeable
public void _storeable_writeState(java.io.OutputStream os)
throws java.io.IOException
_storeable_writeState in interface org.glassfish.ha.store.api.Storeablejava.io.IOException
public void _storeable_readState(java.io.InputStream is)
throws java.io.IOException
_storeable_readState in interface org.glassfish.ha.store.api.Storeablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||