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
Nested ClassesModifier and TypeClassDescriptionstatic classStores the JNDI context properties and lookup names. -
Constructor Summary
Constructors -
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.booleanvoidSets the configuration used to initialize the batch publisher.voidsetDeliveryMode(DeliveryModeConfig deliveryMode) Sets the delivery mode configuration that should be used when publishing the JMS messages.voidvoidsetSessionMode(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
- Specified by:
isUsableForQueriesin classEventHandlerConfiguration
-