001: /**
002: * Sequoia: Database clustering technology.
003: * Copyright (C) 2002-2004 French National Institute For Research In Computer
004: * Science And Control (INRIA).
005: * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
006: * Contact: sequoia@continuent.org
007: *
008: * Licensed under the Apache License, Version 2.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: * Initial developer(s): Nicolas Modrzyk
021: * Contributor(s): Emmanuel Cecchet.
022: */package org.continuent.sequoia.common.jmx.notifications;
023:
024: /**
025: * This is the list of the Sequoia notification that can be sent from the mbean
026: * server on the controller.
027: *
028: * @author <a href="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk </a>
029: * @author <a href="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet
030: * </a>
031: * @version 1.0
032: */
033: public abstract class SequoiaNotificationList {
034:
035: /**
036: * Notification level, notification is not an error
037: */
038: public static final String NOTIFICATION_LEVEL_INFO = "info";
039:
040: /**
041: * Notification level, notification is an error
042: */
043: public static final String NOTIFICATION_LEVEL_ERROR = "error";
044:
045: /**
046: * Virtual Database Removed
047: */
048: public static final String CONTROLLER_VIRTUALDATABASE_REMOVED = "sequoia.controller.virtualdatabases.removed";
049:
050: /**
051: * VirtualDatabase added
052: */
053: public static final String CONTROLLER_VIRTUALDATABASE_ADDED = "sequoia.controller.virtualdatabase.added";
054:
055: /**
056: * New Dump List for virtual database
057: */
058: public static final String VIRTUALDATABASE_NEW_DUMP_LIST = "sequoia.virtualdatabase.dump.list";
059:
060: /**
061: * Backend added
062: */
063: public static final String VIRTUALDATABASE_BACKEND_ADDED = "sequoia.virtualdatabase.backend.added";
064:
065: /**
066: * Controller added for Distributed VirtualDatabase
067: */
068: public static final String DISTRIBUTED_CONTROLLER_ADDED = "sequoia.distributed.controller.added";
069:
070: /**
071: * Controller removed from Distributed VirtualDatabase
072: */
073: public static final String DISTRIBUTED_CONTROLLER_REMOVED = "sequoia.distributed.controller.removed";
074:
075: /**
076: * Backend has been disabled
077: */
078: public static final String VIRTUALDATABASE_BACKEND_DISABLED = "sequoia.virtualdatabase.backend.disabled";
079:
080: /**
081: * Backend has been enabled
082: */
083: public static final String VIRTUALDATABASE_BACKEND_ENABLED = "sequoia.virtualdatabase.backend.enabled";
084:
085: /**
086: * Backend is recovering
087: */
088: public static final String VIRTUALDATABASE_BACKEND_RECOVERING = "sequoia.virtualdatabase.backend.recovering";
089:
090: /**
091: * Backend recovery has failed
092: */
093: public static final String VIRTUALDATABASE_BACKEND_RECOVERY_FAILED = "sequoia.virtualdatabase.backend.recovery.failed";
094:
095: /**
096: * Backend replaying has failed
097: */
098: public static final String VIRTUALDATABASE_BACKEND_REPLAYING_FAILED = "sequoia.virtualdatabase.backend.replaying.failed";
099:
100: /**
101: * Backend is backing up
102: */
103: public static final String VIRTUALDATABASE_BACKEND_BACKINGUP = "sequoia.virtualdatabase.backend.backingup";
104:
105: /**
106: * Backend is write enabled
107: */
108: public static final String VIRTUALDATABASE_BACKEND_ENABLED_WRITE = "sequoia.virtualdatabase.backend.enable.write";
109:
110: /**
111: * Backend has been removed
112: */
113: public static final String VIRTUALDATABASE_BACKEND_REMOVED = "sequoia.virtualdatabase.backend.removed";
114:
115: /**
116: * Backend is being disabled
117: */
118: public static final String VIRTUALDATABASE_BACKEND_DISABLING = "sequoia.virtualdatabase.backend.disabling";
119:
120: /**
121: * Backend has been killed by the load balancer. We don't know the state of
122: * the backend so we have to restore it
123: */
124: public static final String VIRTUALDATABASE_BACKEND_UNKNOWN = "sequoia.virtualdatabase.backend.unknown";
125:
126: /**
127: * Replaying content of recovery log
128: */
129: public static final String VIRTUALDATABASE_BACKEND_REPLAYING = "sequoia.virtualdatabase.backend.replaying";
130:
131: /**
132: * a network partition has been detected on the vdb
133: */
134: public static final String VDB_NETWORK_PARTITION_DETECTION = "vdb.network.partition.detection"; //$NON-NLS-1$
135:
136: /** element that can be found in the data object */
137: public static final String DATA_DATABASE = "database";
138: /** element that can be found in the data object */
139: public static final String DATA_CHECKPOINT = "checkpoint";
140: /** element that can be found in the data object */
141: public static final String DATA_URL = "url";
142: /** element that can be found in the data object */
143: public static final String DATA_NAME = "name";
144: /** element that can be found in the data object */
145: public static final String DATA_DRIVER = "driver";
146:
147: }
|