Class GrouperBuiltinMessagingSystem
java.lang.Object
edu.internet2.middleware.grouper.messaging.GrouperBuiltinMessagingSystem
- All Implemented Interfaces:
GrouperMessagingSystem
built in messaging system from database
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
state of a message -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacknowledge
(GrouperMessageAcknowledgeParam grouperMessageAcknowledgeParam) static boolean
allowedToReceiveFromQueue
(String queueName, Subject subject) static boolean
allowedToSendToQueue
(String queueName, Subject subject) static boolean
allowedToSendToTopic
(String topicName, Subject subject) static boolean
allowReceiveFromQueue
(String queueName, Subject subject) static boolean
allowSendToQueue
(String queueName, Subject subject) static boolean
allowSendToTopic
(String topicName, Subject subject) static int
clean old unprocessed messagesstatic int
clean old unprocessed messagesstatic boolean
createQueue
(String queueName) static boolean
createTopic
(String topicName) static boolean
deleteQueue
(String queueName) static boolean
deleteTopic
(String topicName) static boolean
disallowReceiveFromQueue
(String queueName, Subject subject) static boolean
disallowSendToQueue
(String queueName, Subject subject) static boolean
disallowSendToTopic
(String topicName, Subject subject) static String
grouper message name of rolestatic String
grouper message queue name of attribute defstatic String
grouper message topic name of attribute defstatic String
message root stemstatic long
get a change log idstatic String
queue stem name GrouperBuiltinMessagingSystem.static Collection<String>
queuesTopicSendsTo
(String topicName) receive
(GrouperMessageReceiveParam grouperMessageReceiveParam) send
(GrouperMessageSendParam grouperMessageSendParam) static boolean
topicAddSendToQueue
(String topicName, String queueName) static boolean
topicRemoveSendToQueue
(String topicName, String queueName) static String
topic stem name
-
Field Details
-
actionSendToTopic
action for send to topic- See Also:
-
actionSendToQueue
action for send to queue- See Also:
-
actionReceive
action for receive- See Also:
-
BUILTIN_NAME
name of built in messaging system- See Also:
-
-
Constructor Details
-
GrouperBuiltinMessagingSystem
public GrouperBuiltinMessagingSystem()
-
-
Method Details
-
messageRootStemName
message root stem- Returns:
- the message root stem
-
grouperMessageTopicNameOfDef
grouper message topic name of attribute def- Returns:
- the name
-
grouperMessageNameOfRole
grouper message name of role- Returns:
- the name
-
grouperMessageQueueNameOfDef
grouper message queue name of attribute def- Returns:
- the name
-
topicStemName
topic stem name- Returns:
- topic stem name GrouperBuiltinMessagingSystem.
-
queueStemName
queue stem name GrouperBuiltinMessagingSystem.- Returns:
- queue stem name
-
createTopic
- Parameters:
topicName
-- Returns:
- if created or already existed
-
deleteTopic
- Parameters:
topicName
-- Returns:
- if deleted or didnt exist
-
deleteQueue
- Parameters:
queueName
-- Returns:
- if deleted or didnt exist
-
createQueue
- Parameters:
queueName
-- Returns:
- if created or already created
-
topicAddSendToQueue
- Parameters:
topicName
-queueName
-- Returns:
- true if a change occurred
-
topicRemoveSendToQueue
- Parameters:
topicName
-queueName
-- Returns:
- true if a change occurred
-
allowSendToTopic
- Parameters:
topicName
-subject
-- Returns:
- true if assigned or false if already existed
-
disallowSendToTopic
- Parameters:
topicName
-subject
-- Returns:
- true if assigned or false if already existed
-
allowSendToQueue
- Parameters:
queueName
-subject
-- Returns:
- true if changed, false if not
-
disallowSendToQueue
- Parameters:
queueName
-subject
-- Returns:
- true if changed, false if not
-
allowReceiveFromQueue
- Parameters:
queueName
-subject
-- Returns:
- true if changed or false if not changed
-
disallowReceiveFromQueue
- Parameters:
queueName
-subject
-- Returns:
- true if changed or false if not changed
-
allowedToSendToQueue
- Parameters:
queueName
-subject
-- Returns:
- true if allowed to send to queue
-
allowedToReceiveFromQueue
- Parameters:
queueName
-subject
-- Returns:
- true if allowed to send to queue
-
allowedToSendToTopic
- Parameters:
topicName
-subject
-- Returns:
- true if allowed to send to topic
-
queuesTopicSendsTo
- Parameters:
topicName
-- Returns:
- the queue names that the topic sends to
-
messageSentTimeMicros
public static long messageSentTimeMicros()get a change log id- Returns:
- a change log id value
-
cleanOldUnprocessedMessages
public static int cleanOldUnprocessedMessages()clean old unprocessed messages- Returns:
- the number of messages affected
-
cleanOldProcessedMessages
public static int cleanOldProcessedMessages()clean old unprocessed messages- Returns:
- the number of messages affected
-
send
- Specified by:
send
in interfaceGrouperMessagingSystem
- See Also:
-
receive
- Specified by:
receive
in interfaceGrouperMessagingSystem
- See Also:
-
acknowledge
public GrouperMessageAcknowledgeResult acknowledge(GrouperMessageAcknowledgeParam grouperMessageAcknowledgeParam) - Specified by:
acknowledge
in interfaceGrouperMessagingSystem
- See Also:
-