|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.SiteStatusViewsFactory
public class SiteStatusViewsFactory
| Field Summary | |
|---|---|
protected boolean |
initialized
Boolean indicating if the init() method has been called. |
protected static long |
m_lastModified
Timestamp of the viewDisplay file, used to know when to reload from disk. |
protected static Map<String,View> |
m_viewsMap
Map of view objects by name. |
| Constructor Summary | |
|---|---|
SiteStatusViewsFactory(Reader rdr)
|
|
SiteStatusViewsFactory(String configFile)
|
|
| Method Summary | |
|---|---|
static SiteStatusViewConfiguration |
getConfig()
|
static SiteStatusViewsFactory |
getInstance()
Singleton static call to get the only instance that should exist for the ViewsDisplayFactory |
View |
getView(String viewName)
Can't be null |
static Map<String,View> |
getViewsMap()
|
static void |
init()
Be sure to call this method before calling getInstance(). |
void |
reload()
|
static void |
setConfig(SiteStatusViewConfiguration m_config)
|
static void |
setInstance(SiteStatusViewsFactory instance)
|
static void |
setViewsMap(Map<String,View> map)
|
protected void |
updateFromFile()
Reload the viewsdisplay.xml file if it has been changed since we last read it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean initialized
protected static long m_lastModified
protected static Map<String,View> m_viewsMap
| Constructor Detail |
|---|
public SiteStatusViewsFactory(String configFile)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public SiteStatusViewsFactory(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException| Method Detail |
|---|
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic static SiteStatusViewsFactory getInstance()
IllegalStateException - if init has not been calledpublic static void setInstance(SiteStatusViewsFactory instance)
public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public View getView(String viewName)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void updateFromFile()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic static SiteStatusViewConfiguration getConfig()
public static void setConfig(SiteStatusViewConfiguration m_config)
public static Map<String,View> getViewsMap()
public static void setViewsMap(Map<String,View> map)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||