Package org.forgerock.audit.handlers.jms
Class JmsAuditEventHandlerConfiguration
- java.lang.Object
 - 
- org.forgerock.audit.events.handlers.EventHandlerConfiguration
 - 
- org.forgerock.audit.handlers.jms.JmsAuditEventHandlerConfiguration
 
 
 
- 
public class JmsAuditEventHandlerConfiguration extends EventHandlerConfiguration
Configuration object for theJmsAuditEventHandler.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 Classes Modifier and Type Class Description static classJmsAuditEventHandlerConfiguration.BatchConfigurationThis 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 classJmsAuditEventHandlerConfiguration.JndiConfigurationStores the JNDI context properties and lookup names. 
- 
Constructor Summary
Constructors Constructor Description JmsAuditEventHandlerConfiguration() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsAuditEventHandlerConfiguration.BatchConfigurationgetBatch()Returns the configuration used to initialize the batch publisher.DeliveryModeConfiggetDeliveryMode()Returns the delivery mode configuration that should be used when publishing the JMS messages.JmsAuditEventHandlerConfiguration.JndiConfigurationgetJndi()SessionModeConfiggetSessionMode()Returns the mode that the JMS session should use when publishing the JMS messages.booleanisUsableForQueries()States if anAuditEventHandlercan be used for queries.voidsetBatch(JmsAuditEventHandlerConfiguration.BatchConfiguration batch)Sets 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.voidsetJndi(JmsAuditEventHandlerConfiguration.JndiConfiguration jndi)voidsetSessionMode(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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getDeliveryMode
public DeliveryModeConfig getDeliveryMode()
Returns the delivery mode configuration that should be used when publishing the JMS messages.- Returns:
 - the delivery mode.
 
 
- 
setDeliveryMode
public void setDeliveryMode(DeliveryModeConfig deliveryMode)
Sets the delivery mode configuration that should be used when publishing the JMS messages.- Parameters:
 deliveryMode- the delivery mode
 
- 
getSessionMode
public SessionModeConfig 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
public void setSessionMode(SessionModeConfig sessionMode)
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
public JmsAuditEventHandlerConfiguration.BatchConfiguration getBatch()
Returns the configuration used to initialize the batch publisher.- Returns:
 - the configuration used to initialize the batch publisher.
 
 
- 
setBatch
public void setBatch(JmsAuditEventHandlerConfiguration.BatchConfiguration batch)
Sets the configuration used to initialize the batch publisher.- Parameters:
 batch- the configuration used to initialize the batch publisher.
 
- 
getJndi
public JmsAuditEventHandlerConfiguration.JndiConfiguration getJndi()
- Returns:
 - The 
JmsAuditEventHandlerConfiguration.JndiConfiguration. 
 
- 
setJndi
public void setJndi(JmsAuditEventHandlerConfiguration.JndiConfiguration jndi)
- Parameters:
 jndi- TheJmsAuditEventHandlerConfiguration.JndiConfiguration
 
- 
isUsableForQueries
public boolean isUsableForQueries()
Description copied from class:EventHandlerConfigurationStates if anAuditEventHandlercan be used for queries.- Specified by:
 isUsableForQueriesin classEventHandlerConfiguration- Returns:
 - True - If the 
AuditEventHandlercan be used for queries. False - If theAuditEventHandlercan not be used for queries. 
 
 - 
 
 -