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 String
milliseconds since 1970 that the message was attempted to be receivedstatic final String
member id of user who sent the messagestatic final String
how many times this message has been attempted to be retrievedstatic final String
milliseconds since 1970 that the message was attempted to be receivedstatic final String
millis since 1970 that this message was successfully receivedstatic final String
hibernate versionstatic final String
db uuid for this rowstatic final String
message bodystatic final String
queue name for the messagestatic final String
microseconds since 1970 this message was sent (note this is probably unique, but not necessarily)static final String
state of this message: IN_QUEUE, GET_ATTEMPTED, PROCESSEDstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: idstatic final String
name 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_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
delete()
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, PROCESSEDvoid
save or update this objectvoid
setAttemptTimeExpiresMillis
(Long attemptTimeExpiresMillis1) millis since 1970 that this message attempt expires if not sent successfully note this will be reset to null when message sent successfullyvoid
setContextId
(String contextId1) set context idvoid
setFromMemberId
(String fromMemberId1) void
setGetAttemptCount
(Integer getAttemptCount1) void
setGetAttemptTimeMillis
(Long getAttemptTimeMillis1) milliseconds since 1970 that the message was attempted to be receivedvoid
setGetTimeMillis
(Long getTimeMillis1) millis since 1970 that this message was successfully receivedvoid
void
setMessageBody
(String messageBody1) body of message (e.g.void
setQueueName
(String queueName1) queue name for the messagevoid
setQueueOrTopic
(String theQueueOrTopic1) void
setSentTimeMicros
(Long sentTimeMicros1) millis since 1970 that this message was sentvoid
state 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:
setId
in interfaceGrouperMessage
- Parameters:
id1
- the id to set
-
getFromMemberId
- Specified by:
getFromMemberId
in interfaceGrouperMessage
- See Also:
-
getId
- Specified by:
getId
in interfaceGrouperMessage
- Returns:
- id
-
getMessageBody
body of message (e.g. the json or encrypted message)- Specified by:
getMessageBody
in interfaceGrouperMessage
- Returns:
- the messageBody
-
setFromMemberId
- Specified by:
setFromMemberId
in interfaceGrouperMessage
- See Also:
-
setMessageBody
body of message (e.g. the json or encrypted message)- Specified by:
setMessageBody
in 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:GrouperAPI
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in 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
-
-