public class EventTopicTree 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 |
---|
EventTopicTree()
Default constructor
|
EventTopicTree(EventTopicTree gEventTopicTree)
gEventTopicTree global event topic tree
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpEventTopicTree(boolean isTenant) |
void |
eventAction(java.lang.String subject,
EventMessage msg)
event action method.
|
void |
eventAction(java.lang.String subject,
EventMessage msg,
EventTopic topic)
event action method.
|
void |
eventValidate(java.lang.String subject,
EventMessage msg)
event validation method.
|
void |
eventValidate(java.lang.String subject,
EventMessage msg,
EventTopic topic)
event validation method.
|
EventTopic |
findEventTopic(java.lang.String subject)
findEventTopic finds the eventTopic in the global tree.
|
EventTopic |
findEventTopic(java.lang.String subject,
boolean isTenant)
findEventTopic searches the entire event topic tree for
an eventTopic.
|
EventTopic |
getEventTopic(java.lang.String subject)
Gets the event topic from global tree.
|
EventTopic |
getEventTopic(java.lang.String subject,
boolean isTenant)
Gets the event topic from global tree.
|
int |
getEventTopicId(java.lang.String topic,
EventListener evt)
Returns the subscription id of the event listener class.
|
int |
getEventTopicId(java.lang.String topic,
EventListener evt,
boolean isTenant) |
java.util.Hashtable |
getEventTopics()
getEventTopics
|
EventTopicTree |
getOwnerTree() |
boolean |
isActive()
Identifies whether this EventTopicTree is active.
|
void |
postCommitEventAction(java.lang.String subject,
EventMessage msg)
Post Commit event action method.
|
void |
postCommitEventAction(java.lang.String subject,
EventMessage msg,
EventTopic et) |
void |
postSaveInternalEventAction(java.lang.String subject,
EventMessage msg)
Pre Save event action method.
|
void |
postSaveInternalEventAction(java.lang.String subject,
EventMessage msg,
EventTopic et)
Pre Save event action method.
|
void |
preSaveEventAction(java.lang.String subject,
EventMessage msg)
Pre Save event action method.
|
void |
preSaveEventAction(java.lang.String subject,
EventMessage msg,
EventTopic et)
Pre Save event action method.
|
void |
preSaveInternalEventAction(java.lang.String subject,
EventMessage msg)
Pre Save event action method.
|
void |
preSaveInternalEventAction(java.lang.String subject,
EventMessage msg,
EventTopic et)
Pre Save event action method.
|
java.lang.String |
printEventTopicTree(boolean isTenant)
Returns the event topic tree.
|
int |
register(java.lang.String topic,
EventListener evt)
Registers the events on the global topic tree.
|
int |
register(java.lang.String topic,
EventListener evt,
boolean isTenant)
Registers the events on the global topic tree.
|
void |
registerExtendsTopic(java.lang.String topic,
EventTopic et,
EventListener evt,
int parentId)
Register all extended objects for the main object
|
void |
setActive(boolean value) |
void |
setOwnerTree(EventTopicTree tree) |
void |
setTenantList(java.util.List<java.lang.Integer> tenantList) |
void |
unregister(java.lang.String topic,
int id)
method that unregisters the events on the global topic tree.
|
void |
unregister(java.lang.String topic,
int id,
boolean isTenant)
Unregister the events on the topic tree.
|
public EventTopicTree()
public EventTopicTree(EventTopicTree gEventTopicTree)
public void setOwnerTree(EventTopicTree tree)
public EventTopicTree getOwnerTree()
public void setActive(boolean value)
public boolean isActive()
isActive
public java.util.Hashtable getEventTopics()
public EventTopic findEventTopic(java.lang.String subject) throws MXException
subject
- Subject of the Event to find.MXException
public EventTopic findEventTopic(java.lang.String subject, boolean isTenant) throws MXException
subject
- Subject of the Event to find.isTenant
- Searches in Tenant tree when true. searches in the Global tree when false.MXException
public EventTopic getEventTopic(java.lang.String subject) throws MXException
subject
- Subject of the Event to find.MXException
public EventTopic getEventTopic(java.lang.String subject, boolean isTenant) throws MXException
subject
- Subject of the Event to find.isTenant
- Searches in Tenant tree when true. searches in the Global tree when false.MXException
public java.util.Map<java.lang.String,java.lang.Object> dumpEventTopicTree(boolean isTenant) throws MXException
MXException
public java.lang.String printEventTopicTree(boolean isTenant) throws MXException
isTenant
- Searches in Tenant tree when true. searches in the Global tree when false.MXException
public void eventValidate(java.lang.String subject, EventMessage msg, EventTopic topic) throws MXException
MXException
public void eventValidate(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void eventAction(java.lang.String subject, EventMessage msg, EventTopic topic) throws MXException
MXException
public void eventAction(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void preSaveEventAction(java.lang.String subject, EventMessage msg, EventTopic et) throws MXException
MXException
public void preSaveEventAction(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void preSaveInternalEventAction(java.lang.String subject, EventMessage msg, EventTopic et) throws MXException
MXException
public void preSaveInternalEventAction(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void postSaveInternalEventAction(java.lang.String subject, EventMessage msg, EventTopic et) throws MXException
MXException
public void postSaveInternalEventAction(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void postCommitEventAction(java.lang.String subject, EventMessage msg) throws MXException
MXException
public void postCommitEventAction(java.lang.String subject, EventMessage msg, EventTopic et) throws MXException
MXException
public int register(java.lang.String topic, EventListener evt) throws MXException
topic
- Subject of the Event to register.evt
- The eventMXException
public int register(java.lang.String topic, EventListener evt, boolean isTenant) throws MXException
topic
- Subject of the Event to register.evt
- The eventisTenant
- Register in Tenant tree when true, Register in the Global tree when false.MXException
public void unregister(java.lang.String topic, int id) throws MXException
MXException
public void unregister(java.lang.String topic, int id, boolean isTenant) throws MXException
topic
- Subject of the Event to unregister.evt
- The eventisTenant
- Unregister in Tenant tree when true, Unregister in the Global tree when false.MXException
public void registerExtendsTopic(java.lang.String topic, EventTopic et, EventListener evt, int parentId) throws MXException
topic
- et
- evt
- parentId
- MXException
public int getEventTopicId(java.lang.String topic, EventListener evt) throws MXException
topic
- Event topicevt
- Registered Event listener classMXException
public int getEventTopicId(java.lang.String topic, EventListener evt, boolean isTenant) throws MXException
MXException
public void setTenantList(java.util.List<java.lang.Integer> tenantList)