public class AnalyticsComponentConfiguration extends java.lang.Object implements ComponentConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
AnalyticsComponentConfiguration()
Creates a new instance of the analytics configation
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Tear-down routine called when the servlet is stopped.
|
void |
enable(boolean flag)
Dynamically enable or disable this component
|
java.lang.String |
getCommonEventMapper()
Returns the path to the common mapper definition file relative to the EAR/xml directory
|
org.w3c.dom.Document |
getCommonEventMapperDocument()
Returns a
Document of the common mapper definition file |
java.util.Vector |
getEnabledStores()
Returns a list of enabled store ID's
|
java.lang.String |
getEventMapper(java.lang.String eventName)
Returns the path to the mapper definition file for the event relative to the EAR/xml directory
|
org.w3c.dom.Document |
getEventMapperDocument(java.lang.String eventName)
Returns a
Document of the mapper definition file for the event type |
int |
getInProcessState()
Returns the state of events that are under processing
|
int |
getMaxBatchSize()
Returns the maximum transaction batch size
|
int |
getMaxProcessTime()
Returns the maximum time in which the event can remain in 'under processing' state
|
int |
getProcessState()
Returns the state of events that are pending processing
|
int |
getPurgeState()
Returns the state of events that are finished processing
|
TypedProperty |
getStoreConfiguration(java.lang.Integer storeId)
Returns the configuration parameters specific to a store
|
java.lang.String |
getStoreTransmitClass(java.lang.Integer storeId)
Returns the fully-qualified name of the class that implements the transmitter for the given store
|
java.util.Vector |
getSupportedChannelsForTransport(java.lang.String transportId)
Returns a list of enabled channel identifiers
|
java.util.Vector |
getSupportedEvents()
Returns a list of supported or enabled event types
|
java.util.Vector |
getSupportedTransports()
Returns a list of transport identifiers that are enabled or supported
|
void |
init(org.w3c.dom.Element elemConfig)
Initialization routine called by the configuration framework during servlet startup
to provide XML configuration markup defined in the instance XML.
|
boolean |
isChannelSupportedForTransport(java.lang.String transportId,
java.lang.Integer channelId)
Returns whether or not a channel is enabled for a given transport
|
boolean |
isEventSupported(java.lang.String eventName)
Returns whether or not an event type is supported or enabled
|
boolean |
isStoreEnabled(java.lang.Integer storeId)
Returns whether or not a store is enabled
|
boolean |
isStoreTransmitEnabled(java.lang.Integer storeId)
Returns whether or not a store is set to automatically transmit results
|
boolean |
isTransportSupported(java.lang.String transportId)
Returns whether or not a transport is enabled.
|
public static final java.lang.String COPYRIGHT
public AnalyticsComponentConfiguration()
public void init(org.w3c.dom.Element elemConfig) throws java.lang.Exception
init
in interface ComponentConfiguration
elemConfig
- The configuration XML node for this component in the instance XMLjava.lang.Exception
- if a problem occurred during initializationpublic void destroy()
destroy
in interface ComponentConfiguration
public void enable(boolean flag) throws java.lang.Exception
enable
in interface ComponentConfiguration
flag
- true
or false
to enable or disable, respectively, this componentjava.lang.Exception
- if a problem occurredpublic java.util.Vector getSupportedEvents()
Vector
of String
objects containing event typespublic boolean isEventSupported(java.lang.String eventName)
eventName
- the event type to checktrue
if the event is enabled, false
otherwisepublic java.util.Vector getEnabledStores()
Vector
of Integer
objects containing store identifierspublic boolean isStoreEnabled(java.lang.Integer storeId)
storeId
- the store identifiertrue
if the store is enabled, false
otherwisepublic TypedProperty getStoreConfiguration(java.lang.Integer storeId)
storeId
- the store identifierpublic boolean isStoreTransmitEnabled(java.lang.Integer storeId)
storeId
- the store identifiertrue
if the store is enabled for auto-transmission, false
otherwisepublic java.lang.String getStoreTransmitClass(java.lang.Integer storeId)
storeId
- the store identifiernull
if one doesn't exist.public java.lang.String getCommonEventMapper()
null
if it is not definedpublic org.w3c.dom.Document getCommonEventMapperDocument()
Document
of the common mapper definition fileDocument
of the common mapper definition file or null
if it can't be foundpublic java.lang.String getEventMapper(java.lang.String eventName)
eventName
- the event namenull
if it is not definedpublic org.w3c.dom.Document getEventMapperDocument(java.lang.String eventName)
Document
of the mapper definition file for the event typeeventName
- the event nameDocument
of the mapper definition file or null
if it can't be foundpublic int getProcessState()
public int getPurgeState()
public int getInProcessState()
public int getMaxProcessTime()
public java.util.Vector getSupportedChannelsForTransport(java.lang.String transportId)
transportId
- the transport identifiedVector
of Integer
objects containing channel identifierspublic boolean isChannelSupportedForTransport(java.lang.String transportId, java.lang.Integer channelId)
transportId
- the transport identifiedchannelId
- the channel identifiertrue
if the channel is enabled, false
otherwisepublic java.util.Vector getSupportedTransports()
Vector
of String
objects containing transport IDspublic boolean isTransportSupported(java.lang.String transportId)
transportId
- the transport identifier to checktrue
if the transport is enabled or supported, false
otherwisepublic int getMaxBatchSize()