📄 eventconstants.java
字号:
//// This file is part of the OpenNMS(R) Application.//// OpenNMS(R) is Copyright (C) 2002-2003 The OpenNMS Group, Inc. All rights reserved.// OpenNMS(R) is a derivative work, containing both original code, included code and modified// code that was published under the GNU General Public License. Copyrights for modified // and included code are below.//// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.//// Modifications://// 2005 Mar 08: Added configure SNMP UEI and parms// 2004 Dec 21: Added the snmp conflicts with db UEI// 2004 Oct 07: Added code to support RTC rescan on asset update// 2004 Jan 06: Added the suspend polling service event UEI, and the// resume polling service event UEI. Cleaned up some typos// in comments.// 2003 Nov 11: Merged changes from Rackspace project// 2003 Sep 09: Added code to support duplicate IP address handling.//// Original code base Copyright (C) 1999-2001 Oculan Corp. All rights reserved.//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//// For more information contact:// OpenNMS Licensing <license@opennms.org>// http://www.opennms.org/// http://www.opennms.com///package org.opennms.netmgt;import java.text.DateFormat;import java.text.ParseException;import java.util.Date;import java.util.TimeZone;/** * This class holds all OpenNMS events related constants - the UEI's, parm * names, the event time format etc. * * @author <A HREF="http://www.opennms.org/">OpenNMS </A> * */public class EventConstants { /** * The date format string to parse a Date.toString() type string to a * database timestamp using the postgres to_timestamp() built-in function. */ public static final String POSTGRES_DATE_FORMAT = "\'Dy Mon DD HH24:MI:SS Tz YYYY\'"; /** * The string property set on JMS messages to indicate the encoding to be * used */ public static final String JMS_MSG_PROP_CHAR_ENCODING = "char_encoding"; /** * The value for the string property set on JMS messages to indicate the * encoding to be used */ public static final String JMS_MSG_PROP_CHAR_ENCODING_VALUE = "US-ASCII"; /** * The string property set on JMS messages to indicate the sender service */ public static final String JMS_MSG_PROP_SENDER = "sender"; /** * The string property set on JMS messages broadcast from eventd - to use * UEI(s) as a filter */ public static final String JMS_MSG_PROP_UEI_SELECTOR = "ueiSelector"; // // the eventUEIs used by OpenNMS // /** * The status query control event */ public final static String STATUS_QUERY_CONTROL_EVENT_UEI = "uei.opennms.org/internal/control/status"; /** * The start event */ public final static String START_CONTROL_EVENT_UEI = "uei.opennms.org/internal/control/start"; /** * The pause event */ public final static String PAUSE_CONTROL_EVENT_UEI = "uei.opennms.org/internal/control/pause"; /** * The resume event */ public final static String RESUME_CONTROL_EVENT_UEI = "uei.opennms.org/internal/control/resume"; /** * The stop event */ public final static String STOP_CONTROL_EVENT_UEI = "uei.opennms.org/internal/control/stop"; /** * The 'start pending' response event */ public final static String CONTROL_START_PENDING_EVENT_UEI = "uei.opennms.org/internal/control/startPending"; /** * The 'starting' response event */ public final static String CONTROL_STARTING_EVENT_UEI = "uei.opennms.org/internal/control/starting"; /** * The 'pause pending' response event */ public final static String CONTROL_PAUSE_PENDING_EVENT_UEI = "uei.opennms.org/internal/control/pausePending"; /** * The 'paused' response event */ public final static String CONTROL_PAUSED_EVENT_UEI = "uei.opennms.org/internal/control/paused"; /** * The 'resume pending' response event */ public final static String CONTROL_RESUME_PENDING_EVENT_UEI = "uei.opennms.org/internal/control/resumePending"; /** * The 'running' response event */ public final static String CONTROL_RUNNING_EVENT_UEI = "uei.opennms.org/internal/control/running"; /** * The 'stop pending' response event */ public final static String CONTROL_STOP_PENDING_EVENT_UEI = "uei.opennms.org/internal/control/stopPending"; /** * The 'stopped' response event */ public final static String CONTROL_STOPPED_EVENT_UEI = "uei.opennms.org/internal/control/stopped"; /** * The control error reponse event */ public final static String CONTROL_ERROR_EVENT_UEI = "uei.opennms.org/internal/control/error"; /** * The new suspect event UEI */ public final static String NEW_SUSPECT_INTERFACE_EVENT_UEI = "uei.opennms.org/internal/discovery/newSuspect"; /** * The discovery pause event UEI */ public final static String DISC_PAUSE_EVENT_UEI = "uei.opennms.org/internal/capsd/discPause"; /** * The discovery resume event UEI */ public final static String DISC_RESUME_EVENT_UEI = "uei.opennms.org/internal/capsd/discResume"; /** * The update server event UEI */ public final static String UPDATE_SERVER_EVENT_UEI = "uei.opennms.org/internal/capsd/updateServer"; /** * The update service event UEI */ public final static String UPDATE_SERVICE_EVENT_UEI = "uei.opennms.org/internal/capsd/updateService"; /** * The add node event UEI */ public final static String ADD_NODE_EVENT_UEI = "uei.opennms.org/internal/capsd/addNode"; /** * The delete node event UEI */ public final static String DELETE_NODE_EVENT_UEI = "uei.opennms.org/internal/capsd/deleteNode"; /** * The add interface event UEI */ public final static String ADD_INTERFACE_EVENT_UEI = "uei.opennms.org/internal/capsd/addInterface"; /** * The delete interface event UEI */ public final static String DELETE_INTERFACE_EVENT_UEI = "uei.opennms.org/internal/capsd/deleteInterface"; /** * The change service event UEI */ public final static String CHANGE_SERVICE_EVENT_UEI = "uei.opennms.org/internal/capsd/changeService"; /** * The restart polling node event UEI */ public final static String RESTART_POLLING_INTERFACE_EVENT_UEI = "uei.opennms.org/nodes/restartPollingInterface"; /** * The change service event UEI */ public final static String XMLRPC_NOTIFICATION_EVENT_UEI = "uei.opennms.org/internal/capsd/xmlrpcNotification"; /** * The node added event UEI */ public final static String NODE_ADDED_EVENT_UEI = "uei.opennms.org/nodes/nodeAdded"; /** * The node gained interface event UEI */ public final static String NODE_GAINED_INTERFACE_EVENT_UEI = "uei.opennms.org/nodes/nodeGainedInterface"; /** * The node gained service event UEI */ public final static String NODE_GAINED_SERVICE_EVENT_UEI = "uei.opennms.org/nodes/nodeGainedService"; /** * The node lost service event UEI */ public final static String NODE_LOST_SERVICE_EVENT_UEI = "uei.opennms.org/nodes/nodeLostService"; /** * The service responsive event UEI */ public final static String SERVICE_RESPONSIVE_EVENT_UEI = "uei.opennms.org/nodes/serviceResponsive"; /** * The service unresponsive event UEI */ public final static String SERVICE_UNRESPONSIVE_EVENT_UEI = "uei.opennms.org/nodes/serviceUnresponsive"; /** * The service unmanaged event UEI */ public final static String SERVICE_UNMANAGED_EVENT_UEI = "uei.opennms.org/nodes/serviceUnmanaged"; /** * The interface down event UEI */ public final static String INTERFACE_DOWN_EVENT_UEI = "uei.opennms.org/nodes/interfaceDown"; /** * The node down event UEI */ public final static String NODE_DOWN_EVENT_UEI = "uei.opennms.org/nodes/nodeDown"; /** * The node up event UEI */ public final static String NODE_UP_EVENT_UEI = "uei.opennms.org/nodes/nodeUp"; /** * The interface up event UEI */ public final static String INTERFACE_UP_EVENT_UEI = "uei.opennms.org/nodes/interfaceUp"; /** * The node regained service event UEI */ public final static String NODE_REGAINED_SERVICE_EVENT_UEI = "uei.opennms.org/nodes/nodeRegainedService"; /** * The delete service event UEI */ public final static String DELETE_SERVICE_EVENT_UEI = "uei.opennms.org/nodes/deleteService"; /** * The service deleted event UEI */ public final static String SERVICE_DELETED_EVENT_UEI = "uei.opennms.org/nodes/serviceDeleted"; /** * The interface deleted event UEI */ public final static String INTERFACE_DELETED_EVENT_UEI = "uei.opennms.org/nodes/interfaceDeleted"; /** * The node deleted event UEI */ public final static String NODE_DELETED_EVENT_UEI = "uei.opennms.org/nodes/nodeDeleted"; /** * The low threshold exceeded event UEI */ public final static String LOW_THRESHOLD_EVENT_UEI = "uei.opennms.org/threshold/lowThresholdExceeded"; /** * The high threshold exceeded event UEI */ public final static String HIGH_THRESHOLD_EVENT_UEI = "uei.opennms.org/threshold/highThresholdExceeded"; /** * The high threshold rearm event UEI */ public final static String HIGH_THRESHOLD_REARM_EVENT_UEI = "uei.opennms.org/threshold/highThresholdRearmed"; /** * The low threshold rearm event UEI */ public final static String LOW_THRESHOLD_REARM_EVENT_UEI = "uei.opennms.org/threshold/lowThresholdRearmed"; /** * The interface index changed event */ public final static String INTERFACE_INDEX_CHANGED_EVENT_UEI = "uei.opennms.org/nodes/interfaceIndexChanged"; /** * The interface supports SNMP event...generated during capability rescan * when an already managed interface gains SNMP support for the first time */ public final static String INTERFACE_SUPPORTS_SNMP_EVENT_UEI = "uei.opennms.org/internal/capsd/interfaceSupportsSNMP"; /** * A service scan has discovered a duplicate IP address. */ public final static String DUPLICATE_IPINTERFACE_EVENT_UEI = "uei.opennms.org/internal/capsd/duplicateIPAddress"; /** * The interface reparented event */ public final static String INTERFACE_REPARENTED_EVENT_UEI = "uei.opennms.org/nodes/interfaceReparented"; /** * The node info changed event */ public final static String NODE_INFO_CHANGED_EVENT_UEI = "uei.opennms.org/nodes/nodeInfoChanged"; /** * The interface IP host name changed event */ public final static String INTERFACE_IP_HOSTNAME_CHANGED_EVENT_UEI = "uei.opennms.org/nodes/interfaceIPHostNameChanged"; /** * The node label changed event */ public final static String NODE_LABEL_CHANGED_EVENT_UEI = "uei.opennms.org/nodes/nodeLabelChanged"; /** * The node label source changed event */ public final static String NODE_LABEL_SOURCE_CHANGED_EVENT_UEI = "uei.opennms.org/nodes/nodeLabelSourceChanged"; /** * The node deleted event UEI */ public final static String DUP_NODE_DELETED_EVENT_UEI = "uei.opennms.org/nodes/duplicateNodeDeleted";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -