Package org.forgerock.audit.handlers.jms
Class JmsAuditEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.handlers.jms.JmsAuditEventHandlerConfiguration
Configuration object for the
JmsAuditEventHandler
.
This configuration object can be created from JSON. Example of valid JSON configuration:
{ "name" : "jms", "topics": [ "access", "activity", "config", "authentication" ], "deliveryMode" : "NON_PERSISTENT", "sessionMode" : "AUTO", "jndi" : { "contextProperties" : { "initialContextFactory" : "org.apache.activemq.jndi.ActiveMQInitialContextFactory", "providerUrl" : "tcp://localhost:61616" }, "topicName" : "audit", "connectionFactoryName" : "connectionFactory" } }
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class holds the configuration properties that are used by the {#link BatchPublisher} to control the batch queue and worker threads that process the items in the queue.static class
Stores the JNDI context properties and lookup names. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBatch()
Returns the configuration used to initialize the batch publisher.Returns the delivery mode configuration that should be used when publishing the JMS messages.getJndi()
Returns the mode that the JMS session should use when publishing the JMS messages.boolean
States if anAuditEventHandler
can be used for queries.void
Sets the configuration used to initialize the batch publisher.void
setDeliveryMode
(DeliveryModeConfig deliveryMode) Sets the delivery mode configuration that should be used when publishing the JMS messages.void
void
setSessionMode
(SessionModeConfig sessionMode) Sets the session mode that the JMS session should use when publishing the JMS messages.Methods inherited from class org.forgerock.audit.events.handlers.EventHandlerConfiguration
getName, getTopics, isEnabled, setEnabled, setName, setTopics
-
Constructor Details
-
JmsAuditEventHandlerConfiguration
public JmsAuditEventHandlerConfiguration()
-
-
Method Details
-
getDeliveryMode
Returns the delivery mode configuration that should be used when publishing the JMS messages.- Returns:
- the delivery mode.
-
setDeliveryMode
Sets the delivery mode configuration that should be used when publishing the JMS messages.- Parameters:
deliveryMode
- the delivery mode
-
getSessionMode
Returns the mode that the JMS session should use when publishing the JMS messages.- Returns:
- the session's mode.
- See Also:
-
Session.getAcknowledgeMode()
-
setSessionMode
Sets the session mode that the JMS session should use when publishing the JMS messages.- Parameters:
sessionMode
- the session's acknowledgement mode.- See Also:
-
Session.getAcknowledgeMode()
-
getBatch
Returns the configuration used to initialize the batch publisher.- Returns:
- the configuration used to initialize the batch publisher.
-
setBatch
Sets the configuration used to initialize the batch publisher.- Parameters:
batch
- the configuration used to initialize the batch publisher.
-
getJndi
- Returns:
- The
JmsAuditEventHandlerConfiguration.JndiConfiguration
.
-
setJndi
- Parameters:
jndi
- TheJmsAuditEventHandlerConfiguration.JndiConfiguration
-
isUsableForQueries
public boolean isUsableForQueries()Description copied from class:EventHandlerConfiguration
States if anAuditEventHandler
can be used for queries.- Specified by:
isUsableForQueries
in classEventHandlerConfiguration
- Returns:
- True - If the
AuditEventHandler
can be used for queries. False - If theAuditEventHandler
can not be used for queries.
-