Class ConfigFileConstants
- java.lang.Object
-
- org.opennms.core.utils.ConfigFileConstants
-
public abstract class ConfigFileConstants extends java.lang.Object
This class holds all OpenNMS related config filenames
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIOND_CONFIG_FILE_NAME
The opennms actiond config filestatic int
ADMIN_PITXML_FILE_NAME
The administrator pitXML file for the Swing GUIstatic int
AMI_CONFIG_FILE_NAME
The AMI agent configuration filestatic int
ASTERISK_CONFIG_FILE_NAME
The Asterisk global configuration file (for notifications, etc.)static int
BASE_CONFIGURATION_FILE_NAME
a store for general information needed to configurestatic int
CAPSD_CONFIG_FILE_NAME
The opennms capsd config filestatic int
CATEGORIES_CONF_FILE_NAME
The categories config filestatic int
CHART_CONFIG_FILE_NAME
JFree Chart configuration filestatic int
COLLECTD_CONFIG_FILE_NAME
The opennms collectd config filestatic int
DATA_COLLECTION_CONF_FILE_NAME
the SNMP data collection conf filestatic int
DB_CONFIG_FILE_NAME
The opennms database config filestatic int
DESTINATION_PATHS_CONF_FILE_NAME
the destination paths for notificationsstatic int
DISCOVERY_CONFIG_FILE_NAME
The opennms discovery config filestatic int
ENLINKD_CONFIG_FILE_NAME
The ENHANCED Linkd discovery configuration filestatic int
EVENT_CONF_FILE_NAME
the event conf filestatic int
EVENT_REPORT
The Events reporting xsl filestatic int
EVENT_REPORT_DTD
This is the name of the path of the event report dtdstatic int
EVENTD_CONFIG_FILE_NAME
The opennms eventd config filestatic int
EXCLUDE_UEI_FILE_NAME
The properties file that contains a list of event uies to exclude from the notification wizardstatic int
GROUPS_CONF_FILE_NAME
The user groups config filestatic int
HTTP_COLLECTION_CONFIG_FILE_NAME
ConstantHTTP_COLLECTION_CONFIG_FILE_NAME
static int
JAVA_MAIL_CONFIG_FILE_NAME
The config file specifying the JavaMailer config (ie SMTP HOST)static int
JDBC_COLLECTION_CONFIG_FILE_NAME
The config file for the JDBC Data Collector.static int
JMS_CONFIG_FILE_NAME
The opennms jms config filestatic int
JMX_DATA_COLLECTION_CONF_FILE_NAME
The config file for specifying JMX MBeansstatic int
KSC_REPORT_FILE_NAME
This is the name of the path of the webui colors dtdstatic int
MANAGER_CONFIG_FILE_NAME
The opennms manager config filestatic int
MAPS_ADAPTER_CONFIG_FILE_NAME
The config file for maps Adapterstatic int
MICROBLOG_CONFIG_FILE_NAME
The config file for microblog notifications and acksstatic int
NOTIF_COMMANDS_CONF_FILE_NAME
the notification commands filestatic int
NOTIFD_CONFIG_FILE_NAME
The opennms notifd config filestatic int
NOTIFICATIONS_CONF_FILE_NAME
the notifications conf filestatic int
NOTIFY_REPORT
The Outages reporting xsl filestatic int
NOTIFY_REPORT_DTD
This is the name of the path of the notification report dtdstatic int
NSCLIENT_COLLECTION_CONFIG_FILE_NAME
The NSClient data collection configuration filestatic int
NSCLIENT_CONFIG_FILE_NAME
The NSClient data collection configuration filestatic int
OPENNMS_DATASOURCE_CONFIG_FILE_NAME
The OpenNMS DataSourceConfiguration filestatic int
OUTAGE_MANAGER_CONFIG_FILE_NAME
The opennms outage manager config filestatic int
OUTAGE_REPORT
The Outages reporting xsl filestatic int
OUTAGE_REPORT_DTD
This is the name of the path of the event report dtdstatic int
POLL_OUTAGES_CONFIG_FILE_NAME
The opennms poll outages config filestatic int
POLLER_CONFIG_FILE_NAME
The opennms poller config filestatic int
RANCID_CONFIG_FILE_NAME
The Rancid Provisioning Adapter configuration filestatic int
REPORT_HTML_XSL
The Availability Reports HTML converter xsl file.static int
REPORT_PDF_XSL
The reporting pdf xsl filestatic int
REPORT_SVG_XSL
The reporting svg xsl filestatic int
RRD_CONFIG_FILE_NAME
The config file specifying the rrd config (ie JRobin vs JNI)static int
RRD_DS_MAX_SIZE
ConstantRRD_DS_MAX_SIZE=19
static int
RTC_CONFIG_FILE_NAME
The opennms rtc config filestatic int
RWS_CONFIG_FILE_NAME
The RWS (RestFul Web Service) configuration file used to access Rancidstatic int
SCRIPTD_CONFIG_FILE_NAME
The opennms scriptd config filestatic int
SERVICE_CONF_FILE_NAME
The services config filestatic int
SITE_STATUS_VIEWS_FILE_NAME
The opennms surveillance views config filestatic int
SNMP_ASSET_ADAPTER_CONFIG_FILE_NAME
The SNMP Asset Provisioning Adapter configuration filestatic int
SNMP_CONF_FILE_NAME
The SNMP config filestatic int
SNMP_INTERFACE_POLLER_CONFIG_FILE_NAME
The opennms SNMP poller config filestatic int
SURVEILLANCE_VIEWS_FILE_NAME
The opennms surveillance views config filestatic int
SYSLOGD_CONFIG_FILE_NAME
The config file for syslogdstatic int
SYSLOGD_GROK_PATTERNS_FILE_NAME
The grok pattern file for Syslogd'sRadixTreeSyslogParser
static int
THRESHD_CONFIG_FILE_NAME
The opennms threshd config filestatic int
THRESHOLDING_CONF_FILE_NAME
the thresholding config filestatic int
TRANSLATOR_CONFIG_FILE_NAME
JFree Chart configuration filestatic int
TRAPD_CONFIG_FILE_NAME
The opennms trapd config filestatic int
USERS_CONF_FILE_NAME
The users config filestatic int
VACUUMD_CONFIG_FILE_NAME
The vacuumd config filestatic int
VIEWS_DISPLAY_CONF_FILE_NAME
The views display config filestatic int
VULNSCAND_CONFIG_FILE_NAME
The opennms vulnscand config filestatic int
WEBUI_COLORS_FILE_NAME
This is the name of the path of the webui colors dtdstatic int
WMI_COLLECTION_CONFIG_FILE_NAME
The WMI collection configuration filestatic int
WMI_CONFIG_FILE_NAME
The WMI agent configuration filestatic int
WSMAN_ASSET_ADAPTER_CONFIG_FILE_NAME
The SNMP Asset Provisioning Adapter configuration filestatic int
XMP_COLLECTION_CONFIG_FILE_NAME
The XMP data collection configuration filestatic int
XMP_CONFIG_FILE_NAME
The XMP agent configuration filestatic int
XMPP_CONFIG_FILE_NAME
The config file specifying the XMPP config (host, user, password, etc.)
-
Constructor Summary
Constructors Constructor Description ConfigFileConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.File
getConfigFileByName(java.lang.String fname)
Returns the javaFile
information for the file identified by the passed base file name.static java.io.File
getFile(int id)
Returns the javaFile
information for the file identified by the passed integer identifier.static java.lang.String
getFileName(int id)
Returns the base name of the identified file as defined by the passed integer value.static java.lang.String
getFilePathString()
Method to return the string for path of the etc directory.static java.lang.String
getHome()
getHomestatic java.lang.String
getIncludeFileString()
Method to return the string for the managed address include files for discovery, capsd and polling.static java.lang.String
getTimezoneFileDir()
getTimezoneFileDir
-
-
-
Field Detail
-
DB_CONFIG_FILE_NAME
public static final int DB_CONFIG_FILE_NAME
The opennms database config file
-
JMS_CONFIG_FILE_NAME
public static final int JMS_CONFIG_FILE_NAME
The opennms jms config file
-
ACTIOND_CONFIG_FILE_NAME
public static final int ACTIOND_CONFIG_FILE_NAME
The opennms actiond config file
-
CAPSD_CONFIG_FILE_NAME
public static final int CAPSD_CONFIG_FILE_NAME
The opennms capsd config file
-
DISCOVERY_CONFIG_FILE_NAME
public static final int DISCOVERY_CONFIG_FILE_NAME
The opennms discovery config file
-
EVENTD_CONFIG_FILE_NAME
public static final int EVENTD_CONFIG_FILE_NAME
The opennms eventd config file
-
REPORT_HTML_XSL
public static final int REPORT_HTML_XSL
The Availability Reports HTML converter xsl file.
-
NOTIFD_CONFIG_FILE_NAME
public static final int NOTIFD_CONFIG_FILE_NAME
The opennms notifd config file
-
OUTAGE_MANAGER_CONFIG_FILE_NAME
public static final int OUTAGE_MANAGER_CONFIG_FILE_NAME
The opennms outage manager config file
-
POLLER_CONFIG_FILE_NAME
public static final int POLLER_CONFIG_FILE_NAME
The opennms poller config file
-
POLL_OUTAGES_CONFIG_FILE_NAME
public static final int POLL_OUTAGES_CONFIG_FILE_NAME
The opennms poll outages config file
-
SNMP_INTERFACE_POLLER_CONFIG_FILE_NAME
public static final int SNMP_INTERFACE_POLLER_CONFIG_FILE_NAME
The opennms SNMP poller config file
-
RTC_CONFIG_FILE_NAME
public static final int RTC_CONFIG_FILE_NAME
The opennms rtc config file
-
TRAPD_CONFIG_FILE_NAME
public static final int TRAPD_CONFIG_FILE_NAME
The opennms trapd config file
-
MANAGER_CONFIG_FILE_NAME
public static final int MANAGER_CONFIG_FILE_NAME
The opennms manager config file
-
SERVICE_CONF_FILE_NAME
public static final int SERVICE_CONF_FILE_NAME
The services config file
-
COLLECTD_CONFIG_FILE_NAME
public static final int COLLECTD_CONFIG_FILE_NAME
The opennms collectd config file
-
THRESHD_CONFIG_FILE_NAME
public static final int THRESHD_CONFIG_FILE_NAME
The opennms threshd config file
-
VULNSCAND_CONFIG_FILE_NAME
public static final int VULNSCAND_CONFIG_FILE_NAME
The opennms vulnscand config file
-
SCRIPTD_CONFIG_FILE_NAME
public static final int SCRIPTD_CONFIG_FILE_NAME
The opennms scriptd config file
-
VACUUMD_CONFIG_FILE_NAME
public static final int VACUUMD_CONFIG_FILE_NAME
The vacuumd config file
-
RRD_CONFIG_FILE_NAME
public static final int RRD_CONFIG_FILE_NAME
The config file specifying the rrd config (ie JRobin vs JNI)
-
JAVA_MAIL_CONFIG_FILE_NAME
public static final int JAVA_MAIL_CONFIG_FILE_NAME
The config file specifying the JavaMailer config (ie SMTP HOST)
-
XMPP_CONFIG_FILE_NAME
public static final int XMPP_CONFIG_FILE_NAME
The config file specifying the XMPP config (host, user, password, etc.)
-
CHART_CONFIG_FILE_NAME
public static final int CHART_CONFIG_FILE_NAME
JFree Chart configuration file
-
TRANSLATOR_CONFIG_FILE_NAME
public static final int TRANSLATOR_CONFIG_FILE_NAME
JFree Chart configuration file
-
JMX_DATA_COLLECTION_CONF_FILE_NAME
public static final int JMX_DATA_COLLECTION_CONF_FILE_NAME
The config file for specifying JMX MBeans
-
SYSLOGD_CONFIG_FILE_NAME
public static final int SYSLOGD_CONFIG_FILE_NAME
The config file for syslogd
-
SYSLOGD_GROK_PATTERNS_FILE_NAME
public static final int SYSLOGD_GROK_PATTERNS_FILE_NAME
The grok pattern file for Syslogd'sRadixTreeSyslogParser
-
ADMIN_PITXML_FILE_NAME
public static final int ADMIN_PITXML_FILE_NAME
The administrator pitXML file for the Swing GUI
-
EXCLUDE_UEI_FILE_NAME
public static final int EXCLUDE_UEI_FILE_NAME
The properties file that contains a list of event uies to exclude from the notification wizard
-
USERS_CONF_FILE_NAME
public static final int USERS_CONF_FILE_NAME
The users config file
-
CATEGORIES_CONF_FILE_NAME
public static final int CATEGORIES_CONF_FILE_NAME
The categories config file
-
GROUPS_CONF_FILE_NAME
public static final int GROUPS_CONF_FILE_NAME
The user groups config file
-
VIEWS_DISPLAY_CONF_FILE_NAME
public static final int VIEWS_DISPLAY_CONF_FILE_NAME
The views display config file
-
NOTIFICATIONS_CONF_FILE_NAME
public static final int NOTIFICATIONS_CONF_FILE_NAME
the notifications conf file
-
NOTIF_COMMANDS_CONF_FILE_NAME
public static final int NOTIF_COMMANDS_CONF_FILE_NAME
the notification commands file
-
DESTINATION_PATHS_CONF_FILE_NAME
public static final int DESTINATION_PATHS_CONF_FILE_NAME
the destination paths for notifications
-
SNMP_CONF_FILE_NAME
public static final int SNMP_CONF_FILE_NAME
The SNMP config file
-
EVENT_CONF_FILE_NAME
public static final int EVENT_CONF_FILE_NAME
the event conf file
-
DATA_COLLECTION_CONF_FILE_NAME
public static final int DATA_COLLECTION_CONF_FILE_NAME
the SNMP data collection conf file
-
BASE_CONFIGURATION_FILE_NAME
public static final int BASE_CONFIGURATION_FILE_NAME
a store for general information needed to configure
-
THRESHOLDING_CONF_FILE_NAME
public static final int THRESHOLDING_CONF_FILE_NAME
the thresholding config file
-
WEBUI_COLORS_FILE_NAME
public static final int WEBUI_COLORS_FILE_NAME
This is the name of the path of the webui colors dtd
-
KSC_REPORT_FILE_NAME
public static final int KSC_REPORT_FILE_NAME
This is the name of the path of the webui colors dtd
-
SURVEILLANCE_VIEWS_FILE_NAME
public static final int SURVEILLANCE_VIEWS_FILE_NAME
The opennms surveillance views config file
-
SITE_STATUS_VIEWS_FILE_NAME
public static final int SITE_STATUS_VIEWS_FILE_NAME
The opennms surveillance views config file
-
HTTP_COLLECTION_CONFIG_FILE_NAME
public static final int HTTP_COLLECTION_CONFIG_FILE_NAME
ConstantHTTP_COLLECTION_CONFIG_FILE_NAME
-
MAPS_ADAPTER_CONFIG_FILE_NAME
public static final int MAPS_ADAPTER_CONFIG_FILE_NAME
The config file for maps Adapter
-
REPORT_PDF_XSL
public static final int REPORT_PDF_XSL
The reporting pdf xsl file
-
REPORT_SVG_XSL
public static final int REPORT_SVG_XSL
The reporting svg xsl file
-
EVENT_REPORT
public static final int EVENT_REPORT
The Events reporting xsl file
-
OUTAGE_REPORT
public static final int OUTAGE_REPORT
The Outages reporting xsl file
-
NOTIFY_REPORT
public static final int NOTIFY_REPORT
The Outages reporting xsl file
-
ENLINKD_CONFIG_FILE_NAME
public static final int ENLINKD_CONFIG_FILE_NAME
The ENHANCED Linkd discovery configuration file
-
OPENNMS_DATASOURCE_CONFIG_FILE_NAME
public static final int OPENNMS_DATASOURCE_CONFIG_FILE_NAME
The OpenNMS DataSourceConfiguration file
-
EVENT_REPORT_DTD
public static final int EVENT_REPORT_DTD
This is the name of the path of the event report dtd
-
OUTAGE_REPORT_DTD
public static final int OUTAGE_REPORT_DTD
This is the name of the path of the event report dtd
-
NOTIFY_REPORT_DTD
public static final int NOTIFY_REPORT_DTD
This is the name of the path of the notification report dtd
-
NSCLIENT_COLLECTION_CONFIG_FILE_NAME
public static final int NSCLIENT_COLLECTION_CONFIG_FILE_NAME
The NSClient data collection configuration file
-
NSCLIENT_CONFIG_FILE_NAME
public static final int NSCLIENT_CONFIG_FILE_NAME
The NSClient data collection configuration file
-
WMI_CONFIG_FILE_NAME
public static final int WMI_CONFIG_FILE_NAME
The WMI agent configuration file
-
XMP_COLLECTION_CONFIG_FILE_NAME
public static final int XMP_COLLECTION_CONFIG_FILE_NAME
The XMP data collection configuration file
-
XMP_CONFIG_FILE_NAME
public static final int XMP_CONFIG_FILE_NAME
The XMP agent configuration file
-
RWS_CONFIG_FILE_NAME
public static final int RWS_CONFIG_FILE_NAME
The RWS (RestFul Web Service) configuration file used to access Rancid
-
RANCID_CONFIG_FILE_NAME
public static final int RANCID_CONFIG_FILE_NAME
The Rancid Provisioning Adapter configuration file
-
SNMP_ASSET_ADAPTER_CONFIG_FILE_NAME
public static final int SNMP_ASSET_ADAPTER_CONFIG_FILE_NAME
The SNMP Asset Provisioning Adapter configuration file
-
WSMAN_ASSET_ADAPTER_CONFIG_FILE_NAME
public static final int WSMAN_ASSET_ADAPTER_CONFIG_FILE_NAME
The SNMP Asset Provisioning Adapter configuration file
-
WMI_COLLECTION_CONFIG_FILE_NAME
public static final int WMI_COLLECTION_CONFIG_FILE_NAME
The WMI collection configuration file
-
ASTERISK_CONFIG_FILE_NAME
public static final int ASTERISK_CONFIG_FILE_NAME
The Asterisk global configuration file (for notifications, etc.)
-
AMI_CONFIG_FILE_NAME
public static final int AMI_CONFIG_FILE_NAME
The AMI agent configuration file
-
MICROBLOG_CONFIG_FILE_NAME
public static final int MICROBLOG_CONFIG_FILE_NAME
The config file for microblog notifications and acks
-
JDBC_COLLECTION_CONFIG_FILE_NAME
public static final int JDBC_COLLECTION_CONFIG_FILE_NAME
The config file for the JDBC Data Collector.
-
RRD_DS_MAX_SIZE
public static final int RRD_DS_MAX_SIZE
ConstantRRD_DS_MAX_SIZE=19
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFileName
public static java.lang.String getFileName(int id)
Returns the base name of the identified file as defined by the passed integer value. This name has not yet been resolved and is only the name of the file with no path location information prepended. If the fully qualified name of the file is needed then usegetFile()
to returned theFile
object. The java File object can be queried to get more detailed information on the file.- Parameters:
id
- The identifier of the desired file.- Returns:
- The base name of the file that matches the identifier.
-
getFile
public static java.io.File getFile(int id) throws java.io.IOException
Returns the java
File
information for the file identified by the passed integer identifier. If the file cannot be located by the search algorithm then an excption is generated.The file is looked for in the etc directory of the OpenNMS home location identified by the System property opennms.home. If the file is not found in the etc directory then an attempt is made to find it in the root OpenNMS directory. If it still cannot be found then a
FileNotFoundException
is generated by the method.- Parameters:
id
- The identifer for the configuration file.- Returns:
- The File handle to the passed identifier.
- Throws:
java.io.FileNotFoundException
- Thrown if the file cannot be located.java.io.IOException
- Thrown if an error occurs accessing the file system.
-
getConfigFileByName
public static java.io.File getConfigFileByName(java.lang.String fname) throws java.io.IOException
Returns the java
File
information for the file identified by the passed base file name. If the file cannot be located by the search algorithm then an excption is generated.The file is looked for in the etc directory of the OpenNMS home location identified by the System property opennms.home. If the file is not found in the etc directory then an attempt is made to find it in the root OpenNMS directory. If it still cannot be found then a
FileNotFoundException
is generated by the method.- Parameters:
fname
- The base file name of the configuration file.- Returns:
- The File handle to the named file.
- Throws:
java.io.FileNotFoundException
- Thrown if the file cannot be located.java.io.IOException
- Thrown if an error occurs accessing the file system.
-
getHome
public static java.lang.String getHome()
getHome
- Returns:
- a
String
object.
-
getIncludeFileString
public static java.lang.String getIncludeFileString()
Method to return the string for the managed address include files for discovery, capsd and polling.- Returns:
- String, the file url for the include file
-
getFilePathString
public static java.lang.String getFilePathString()
Method to return the string for path of the etc directory.- Returns:
- String, the file url for the include file
-
getTimezoneFileDir
public static java.lang.String getTimezoneFileDir()
getTimezoneFileDir
- Returns:
- a
String
object.
-
-