|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ados.hestia.utils.db.KeyProcessor com.ados.hestia.sdk.session.SessionProcessor
public class SessionProcessor
April 13, 2005. Refactored. Used base class KeyProcessor.
Field Summary |
---|
Fields inherited from class com.ados.hestia.utils.db.KeyProcessor |
---|
m_descriptor, m_log, m_modification, m_processor, m_properties, m_repository |
Constructor Summary | |
---|---|
SessionProcessor(StoreRepository repository,
Properties properties)
|
Method Summary | |
---|---|
void |
deleteSessionEntries(SessionKey[] keies)
Delete array of specific entries. |
int |
deleteSessionEntries(WhereDescriptor condition)
Delete set of specific entries based on conditions. |
SessionKey[] |
getSessionEntries(int sortMode,
int offset,
int cnt)
Returns array of key that describes stored sessions. |
SessionKey[] |
getSessionEntries(int sortMode,
WhereDescriptor wd)
Returns array of key according specific criteria. |
SessionKey[] |
getSessionEntries(String pipid)
Returns array of key that describes stored containers for specific pipinstanceid. |
Session |
getSessionEntry(SessionKey key)
Extract associated with key container. |
int |
getSessionEntryCnt()
Returns number of storing at collector bridge entries. |
SessionKey |
registerSessionEntry(Session session)
|
protected SessionKey |
registerSessionEntry(String uid,
Session session)
|
boolean |
updateKey(SessionKey key)
Update key information. |
void |
updateSession(SessionKey key,
Session session)
Update session at DB which is described by specific key. |
Methods inherited from class com.ados.hestia.utils.db.KeyProcessor |
---|
close, closeSafe, closeStore, containerToTempStore, errorToCollectorError, getContainerFromProcessor, getModificationStatus, getProcessor, getRepository, updateModification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionProcessor(StoreRepository repository, Properties properties)
Method Detail |
---|
public SessionKey registerSessionEntry(Session session) throws CollectorException
session
- session to register
CollectorException
- if container can not be registredprotected SessionKey registerSessionEntry(String uid, Session session) throws CollectorException
CollectorException
public SessionKey[] getSessionEntries(int sortMode, int offset, int cnt) throws CollectorException
sortMode
- sort mode. See SessionsKeys.SESSION*
offset
- specify first requsted keycnt
- specify max number to return
CollectorException
- if request can not be processedpublic SessionKey[] getSessionEntries(String pipid) throws CollectorException
pipid
- pip instanceid
CollectorException
- if request can not be processedpublic SessionKey[] getSessionEntries(int sortMode, WhereDescriptor wd) throws CollectorException
wd
- desciptor of search condiotions
CollectorException
- if request can not be processedpublic void deleteSessionEntries(SessionKey[] keies) throws CollectorException
keies
- specify entries to delete
CollectorException
- if request cannot be processedpublic int deleteSessionEntries(WhereDescriptor condition) throws CollectorException
condition
- condition to delete
CollectorException
- if request cannot be processedpublic int getSessionEntryCnt() throws CollectorException
CollectorException
- if request failspublic Session getSessionEntry(SessionKey key) throws CollectorException
key
- key to seek container
CollectorException
- if container cannot be extractedpublic void updateSession(SessionKey key, Session session) throws CollectorException
key
- describes which session to update.session
- new session
CollectorException
- if update cannot be performed.public boolean updateKey(SessionKey key)
key
- key to update
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |