Class GrouperMessageHibernate
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.messaging.GrouperMessageHibernate
- All Implemented Interfaces:
HibGrouperLifecycle,Hib3GrouperVersioned,GrouperCloneable,GrouperUtil.FieldValuable,GrouperMessage,Serializable,org.hibernate.classic.Lifecycle
public class GrouperMessageHibernate
extends GrouperAPI
implements GrouperMessage, Hib3GrouperVersioned
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringmilliseconds since 1970 that the message was attempted to be receivedstatic final Stringmember id of user who sent the messagestatic final Stringhow many times this message has been attempted to be retrievedstatic final Stringmilliseconds since 1970 that the message was attempted to be receivedstatic final Stringmillis since 1970 that this message was successfully receivedstatic final Stringhibernate versionstatic final Stringdb uuid for this rowstatic final Stringmessage bodystatic final Stringqueue name for the messagestatic final Stringmicroseconds since 1970 this message was sent (note this is probably unique, but not necessarily)static final Stringstate of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSEDstatic final Stringconstant for field name for: contextIdstatic final Stringconstant for field name for: idstatic final Stringname of the table in the database.Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBERFields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()deep clone the fields in this objectvoiddelete()delete this objectmillis since 1970 that this message attempt expires if not sent successfully note this will be reset to null when message sent successfullyhow many times this message has been attempted to be retrievedmilliseconds since 1970 that the message was attempted to be receivedmillis since 1970 that this message was successfully receivedgetId()body of message (e.g.queue name for the messagemillis since 1970 that this message was sentgetState()state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSEDvoidsave or update this objectvoidsetAttemptTimeExpiresMillis(Long attemptTimeExpiresMillis1) millis since 1970 that this message attempt expires if not sent successfully note this will be reset to null when message sent successfullyvoidsetContextId(String contextId1) set context idvoidsetFromMemberId(String fromMemberId1) voidsetGetAttemptCount(Integer getAttemptCount1) voidsetGetAttemptTimeMillis(Long getAttemptTimeMillis1) milliseconds since 1970 that the message was attempted to be receivedvoidsetGetTimeMillis(Long getTimeMillis1) millis since 1970 that this message was successfully receivedvoidvoidsetMessageBody(String messageBody1) body of message (e.g.voidsetQueueName(String queueName1) queue name for the messagevoidsetQueueOrTopic(String theQueueOrTopic1) voidsetSentTimeMicros(Long sentTimeMicros1) millis since 1970 that this message was sentvoidstate of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSEDMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
COLUMN_ID
db uuid for this row- See Also:
-
COLUMN_HIBERNATE_VERSION_NUMBER
hibernate version- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
COLUMN_SENT_TIME_MICROS
microseconds since 1970 this message was sent (note this is probably unique, but not necessarily)- See Also:
-
COLUMN_GET_ATTEMPT_TIME_MILLIS
milliseconds since 1970 that the message was attempted to be received- See Also:
-
COLUMN_ATTEMPT_TIME_EXPIRES_MILLIS
milliseconds since 1970 that the message was attempted to be received- See Also:
-
COLUMN_GET_ATTEMPT_COUNT
how many times this message has been attempted to be retrieved- See Also:
-
COLUMN_STATE
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED- See Also:
-
COLUMN_GET_TIME_MILLIS
millis since 1970 that this message was successfully received- See Also:
-
COLUMN_FROM_MEMBER_ID
member id of user who sent the message- See Also:
-
COLUMN_QUEUE_NAME
queue name for the message- See Also:
-
COLUMN_MESSAGE_BODY
message body- See Also:
-
TABLE_GROUPER_MESSAGE
name of the table in the database.- See Also:
-
-
Constructor Details
-
GrouperMessageHibernate
public GrouperMessageHibernate()
-
-
Method Details
-
getAttemptTimeExpiresMillis
millis since 1970 that this message attempt expires if not sent successfully note this will be reset to null when message sent successfully- Returns:
- the attemptTimeExpiresMillis
-
setAttemptTimeExpiresMillis
millis since 1970 that this message attempt expires if not sent successfully note this will be reset to null when message sent successfully- Parameters:
attemptTimeExpiresMillis1- the attemptTimeExpiresMillis to set
-
getState
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED- Returns:
- the state
-
setState
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSED- Parameters:
state1- the state to set
-
setId
- Specified by:
setIdin interfaceGrouperMessage- Parameters:
id1- the id to set
-
getFromMemberId
- Specified by:
getFromMemberIdin interfaceGrouperMessage- See Also:
-
getId
- Specified by:
getIdin interfaceGrouperMessage- Returns:
- id
-
getMessageBody
body of message (e.g. the json or encrypted message)- Specified by:
getMessageBodyin interfaceGrouperMessage- Returns:
- the messageBody
-
setFromMemberId
- Specified by:
setFromMemberIdin interfaceGrouperMessage- See Also:
-
setMessageBody
body of message (e.g. the json or encrypted message)- Specified by:
setMessageBodyin interfaceGrouperMessage- Parameters:
messageBody1- the messageBody to set
-
getSentTimeMicros
millis since 1970 that this message was sent- Returns:
- the sentTimeMicros
-
setSentTimeMicros
millis since 1970 that this message was sent- Parameters:
sentTimeMicros1- the sentTimeMicros to set
-
getQueueName
queue name for the message- Returns:
- the queueName
-
setQueueName
queue name for the message- Parameters:
queueName1- the queueName to set
-
getGetTimeMillis
millis since 1970 that this message was successfully received- Returns:
- the getTimeMillis
-
setGetTimeMillis
millis since 1970 that this message was successfully received- Parameters:
getTimeMillis1- the getTimeMillis to set
-
getGetAttemptTimeMillis
milliseconds since 1970 that the message was attempted to be received- Returns:
- the getAttemptTimeMillis
-
setGetAttemptTimeMillis
milliseconds since 1970 that the message was attempted to be received- Parameters:
getAttemptTimeMillis1- the getAttemptTimeMillis to set
-
getGetAttemptCount
how many times this message has been attempted to be retrieved- Returns:
- the getAttemptCount
-
setGetAttemptCount
- Parameters:
getAttemptCount1- the getAttemptCount to set
-
clone
Description copied from class:GrouperAPIdeep clone the fields in this object- Specified by:
clonein interfaceGrouperCloneable- Specified by:
clonein classGrouperAPI- Returns:
- the clone of the object
- See Also:
-
getContextId
- Returns:
- context id
-
setContextId
set context id- Parameters:
contextId1-
-
saveOrUpdate
public void saveOrUpdate()save or update this object -
delete
public void delete()delete this object -
getQueueOrTopic
- Returns:
- queue or topic
-
setQueueOrTopic
- Parameters:
theQueueOrTopic1-
-