|
OpenNMS API 1.1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.NotifdConfigFactory
Field Summary | |
protected static java.io.InputStream |
configIn
Input stream for the general Notifd configuration xml |
private static NotifdConfiguration |
configuration
|
private static boolean |
initialized
Boolean indicating if the init() method has been called |
private static NotifdConfigFactory |
instance
Singleton instance |
private static long |
m_lastModified
|
private static java.io.File |
m_notifdConfFile
|
Constructor Summary | |
private |
NotifdConfigFactory()
|
Method Summary | |
static NotifdConfiguration |
getConfiguration()
|
static NotifdConfigFactory |
getInstance()
|
static boolean |
getNotificationMatch()
|
static java.lang.String |
getNotificationStatus()
|
static java.lang.String |
getPrettyStatus()
Gets a nicely formatted string for the Web UI to display |
static void |
init()
|
static void |
reload()
|
void |
saveCurrent()
|
private void |
sendEvent(java.lang.String uei)
|
void |
turnNotifdOff()
Turns the notifd service off |
void |
turnNotifdOn()
Turns the notifd service on |
private static void |
updateFromFile()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static NotifdConfigFactory instance
protected static java.io.InputStream configIn
private static boolean initialized
private static NotifdConfiguration configuration
private static java.io.File m_notifdConfFile
private static long m_lastModified
Constructor Detail |
private NotifdConfigFactory()
Method Detail |
public static NotifdConfigFactory getInstance()
public static void init() throws java.io.IOException, java.io.FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
java.io.IOException
java.io.FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
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.ValidationException
public static NotifdConfiguration getConfiguration() 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 java.lang.String getNotificationStatus() 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 boolean getNotificationMatch() 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 java.lang.String getPrettyStatus() 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 void turnNotifdOn() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
public void turnNotifdOff() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
private void sendEvent(java.lang.String uei)
public void saveCurrent() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
private static void updateFromFile() 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
|
OpenNMS API 1.1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |