public class EventTopic extends java.lang.Object implements FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
EventTopic(java.lang.String subject) |
Modifier and Type | Method and Description |
---|---|
void |
addSubTopic(EventTopic ev)
Add subtopic tree to the event node.
|
java.util.Map |
dumpTopic() |
void |
eventAction(EventMessage msg)
action is taken on all subscriptions that returned validate.
|
void |
eventValidate(EventMessage msg)
Runs through all the subscriptons to see if there are any
vetoable exceptions.
|
EventTopic |
getEventTopic(java.lang.String subject)
getEventTopic searches the whole event topic tree for
an eventTopic.
|
java.util.Map |
getExtendedSubIds() |
int |
getListenerCount() |
java.util.Map<java.lang.Integer,EventListener> |
getListeners() |
java.lang.String |
getSubject()
Returns event topic name.
|
int |
getSubscriptionId(EventListener evt)
Returns the subscription id for the event listener object.
|
int |
getSubscriptionIdByClassName(EventListener evt)
Returns the subscription id for the event listener class.
|
EventTopicTree |
getSubTopicTree()
Returns the sub topic tree from this node.
|
EventTopicTree |
getTree() |
boolean |
isActive()
Identifies whether this EventTopic is active.
|
void |
postCommitEventAction(EventMessage msg)
The action is taken after commiting to the database on all subscriptions
that returned successful validate.
|
void |
postSaveInternalEventAction(EventMessage msg)
The action is taken after writing to the database on all subscriptions
The action is called only if there was no vetoable exception.
|
void |
preSaveEventAction(EventMessage msg)
The action is taken before writing to the database on all subscriptions
that returned successful validate.
|
void |
preSaveInternalEventAction(EventMessage msg)
The action is taken before writing to the database on all subscriptions
that returned successful validate.
|
void |
setActive(boolean value)
Used by
AdminModeManager
to activate and inactivate the EventTopic. |
void |
setExtendedSubIds(java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> idMap) |
void |
setTree(EventTopicTree tree) |
public void setTree(EventTopicTree tree)
public void setExtendedSubIds(java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> idMap)
public java.util.Map getExtendedSubIds()
public EventTopicTree getTree()
public java.lang.String getSubject()
public EventTopicTree getSubTopicTree()
public void setActive(boolean value)
AdminModeManager
to activate and inactivate the EventTopic.value
- True to set Active, False to set Inactive.public boolean isActive()
isActive
public void eventValidate(EventMessage msg) throws MXException
MXException
public void eventAction(EventMessage msg) throws MXException
MXException
public void preSaveEventAction(EventMessage msg) throws MXException
MXException
public void preSaveInternalEventAction(EventMessage msg) throws MXException
MXException
public void postSaveInternalEventAction(EventMessage msg) throws MXException
MXException
public void postCommitEventAction(EventMessage msg) throws MXException
MXException
public void addSubTopic(EventTopic ev) throws MXException
MXException
public EventTopic getEventTopic(java.lang.String subject) throws MXException
MXException
public java.util.Map<java.lang.Integer,EventListener> getListeners()
public int getListenerCount()
public int getSubscriptionId(EventListener evt)
EventListener
- evt - The listener class that was registered.public int getSubscriptionIdByClassName(EventListener evt)
EventListener
- evt - The listener class that was registered.public java.util.Map dumpTopic() throws MXException
MXException