|
|||||||||
| 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(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. |
String |
getEventLabel(String uei)
|
Map |
getEventLabels()
|
List<org.opennms.netmgt.xml.eventconf.Event> |
getEvents(String uei)
|
List |
getEventsByLabel()
|
List<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 IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
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,
IOException
IOException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalExceptionpublic static EventconfFactory getInstance()
public static void reload()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic List<org.opennms.netmgt.xml.eventconf.Event> getEvents(String uei)
public org.opennms.netmgt.xml.eventconf.Event getEvent(String uei,
org.opennms.netmgt.xml.eventconf.Mask mask)
public List<String> getEventUEIs()
public Map getEventLabels()
public String getEventLabel(String uei)
public void saveCurrent()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationExceptionpublic 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 | ||||||||