KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > common > jmx > notifications > CjdbcNotificationList


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2002-2005 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: c-jdbc@objectweb.org
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or any later
10  * version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20  *
21  * Initial developer(s): Nicolas Modrzyk
22  * Contributor(s): Emmanuel Cecchet.
23  */

24
25 package org.objectweb.cjdbc.common.jmx.notifications;
26
27 /**
28  * This is the list of the C-JDBC notification that can be sent from the mbean
29  * server on the controller.
30  *
31  * @author <a HREF="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk </a>
32  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet
33  * </a>
34  * @version 1.0
35  */

36 public abstract class CjdbcNotificationList
37 {
38
39   /**
40    * Notification level, notification is not an error
41    */

42   public static final String JavaDoc NOTIFICATION_LEVEL_INFO = "info";
43
44   /**
45    * Notification level, notification is an error
46    */

47   public static final String JavaDoc NOTIFICATION_LEVEL_ERROR = "error";
48
49   /**
50    * Virtual Database Removed
51    */

52   public static final String JavaDoc CONTROLLER_VIRTUALDATABASE_REMOVED = "cjdbc.controller.virtualdatabases.removed";
53
54   /**
55    * VirtualDatabase added
56    */

57   public static final String JavaDoc CONTROLLER_VIRTUALDATABASE_ADDED = "cjdbc.controller.virtualdatabase.added";
58
59   /**
60    * New Dump List for virtual database
61    */

62   public static final String JavaDoc VIRTUALDATABASE_NEW_DUMP_LIST = "cjdbc.virtualdatabase.dump.list";
63
64   /**
65    * Backend added
66    */

67   public static final String JavaDoc VIRTUALDATABASE_BACKEND_ADDED = "cjdbc.virtualdatabase.backend.added";
68
69   /**
70    * Controller added for Distributed VirtualDatabase
71    */

72   public static final String JavaDoc DISTRIBUTED_CONTROLLER_ADDED = "cjdbc.distributed.controller.added";
73
74   /**
75    * Controller removed from Distributed VirtualDatabase
76    */

77   public static final String JavaDoc DISTRIBUTED_CONTROLLER_REMOVED = "cjdbc.distributed.controller.removed";
78
79   /**
80    * Backend has been disabled
81    */

82   public static final String JavaDoc VIRTUALDATABASE_BACKEND_DISABLED = "cjdbc.virtualdatabase.backend.disabled";
83
84   /**
85    * Backend has been enabled
86    */

87   public static final String JavaDoc VIRTUALDATABASE_BACKEND_ENABLED = "cjdbc.virtualdatabase.backend.enabled";
88
89   /**
90    * Backend is recovering
91    */

92   public static final String JavaDoc VIRTUALDATABASE_BACKEND_RECOVERING = "cjdbc.virtualdatabase.backend.recovering";
93
94   /**
95    * Backend recovery has failed
96    */

97   public static final String JavaDoc VIRTUALDATABASE_BACKEND_RECOVERY_FAILED = "cjdbc.virtualdatabase.backend.recovery.failed";
98
99   /**
100    * Backend replaying has failed
101    */

102   public static final String JavaDoc VIRTUALDATABASE_BACKEND_REPLAYING_FAILED = "cjdbc.virtualdatabase.backend.replaying.failed";
103
104   /**
105    * Backend is backing up
106    */

107   public static final String JavaDoc VIRTUALDATABASE_BACKEND_BACKINGUP = "cjdbc.virtualdatabase.backend.backingup";
108
109   /**
110    * Backend is write enabled
111    */

112   public static final String JavaDoc VIRTUALDATABASE_BACKEND_ENABLED_WRITE = "cjdbc.virtualdatabase.backend.enable.write";
113
114   /**
115    * Backend has been removed
116    */

117   public static final String JavaDoc VIRTUALDATABASE_BACKEND_REMOVED = "cjdbc.virtualdatabase.backend.removed";
118
119   /**
120    * Backend is being disabled
121    */

122   public static final String JavaDoc VIRTUALDATABASE_BACKEND_DISABLING = "cjdbc.virtualdatabase.backend.disabling";
123
124   /**
125    * Backend has been killed by the load balancer. We don't know the state of
126    * the backend so we have to restore it
127    */

128   public static final String JavaDoc VIRTUALDATABASE_BACKEND_UNKNOWN = "cjdbc.virtualdatabase.backend.unknown";
129
130   /**
131    * Replaying content of recovery log
132    */

133   public static final String JavaDoc VIRTUALDATABASE_BACKEND_REPLAYING = "cjdbc.virtualdatabase.backend.replaying";
134
135   /** element that can be found in the data object */
136   public static final String JavaDoc DATA_DATABASE = "database";
137   /** element that can be found in the data object */
138   public static final String JavaDoc DATA_CHECKPOINT = "checkpoint";
139   /** element that can be found in the data object */
140   public static final String JavaDoc DATA_URL = "url";
141   /** element that can be found in the data object */
142   public static final String JavaDoc DATA_NAME = "name";
143   /** element that can be found in the data object */
144   public static final String JavaDoc DATA_DRIVER = "driver";
145
146 }
Popular Tags