|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.EventconfFactory
public class EventconfFactory
| Method Summary | |
|---|---|
void |
addEvent(org.opennms.netmgt.xml.eventconf.Event event)
Adds the event to the root level event config storage (file). |
void |
addEventToProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
Adds the given event to the programmatic event store. |
org.opennms.netmgt.xml.eventconf.Event |
getEvent(java.lang.String uei,
org.opennms.netmgt.xml.eventconf.Mask mask)
Deprecated. This function is not implemented completely. It will not perform as expected. When it is implemented, remove this deprecation tag. |
java.lang.String |
getEventLabel(java.lang.String uei)
|
java.util.Map |
getEventLabels()
|
java.util.List<org.opennms.netmgt.xml.eventconf.Event> |
getEvents(java.lang.String uei)
|
java.util.List |
getEventsByLabel()
|
java.util.List<java.lang.String> |
getEventUEIs()
|
static EventconfFactory |
getInstance()
Singleton static call to get the only instance that should exist for the EventconfFactory |
static void |
init()
|
static void |
reinit()
A full reinitialization, from scratch. |
static void |
reload()
|
boolean |
removeEventFromProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
Removes the given event from the programmatic event store. |
void |
saveCurrent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public static void reinit()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException
java.io.IOException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalExceptionpublic static EventconfFactory getInstance()
public static void reload()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic java.util.List<org.opennms.netmgt.xml.eventconf.Event> getEvents(java.lang.String uei)
public org.opennms.netmgt.xml.eventconf.Event getEvent(java.lang.String uei,
org.opennms.netmgt.xml.eventconf.Mask mask)
public java.util.List<java.lang.String> getEventUEIs()
public java.util.Map getEventLabels()
public java.lang.String getEventLabel(java.lang.String uei)
public void saveCurrent()
throws org.exolab.castor.xml.MarshalException,
java.io.IOException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
java.io.IOException
org.exolab.castor.xml.ValidationExceptionpublic java.util.List getEventsByLabel()
public void addEvent(org.opennms.netmgt.xml.eventconf.Event event)
event - The fully configured Event object to add.public void addEventToProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
event - The fully configured Event object to add.public boolean removeEventFromProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
event - The fully configured Event object to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||