001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.geronimo.kernel.management;
019
020
021 /**
022 * Static constants class which contains all of the J2EE notification types from the
023 * J2EE management specification.
024 *
025 * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $
026 */
027 public final class NotificationType {
028 private NotificationType() {
029 }
030
031 /**
032 * A new managed object was created.
033 */
034 public static final String OBJECT_CREATED = "j2ee.object.created";
035
036 /**
037 * A managed object was deleted
038 */
039 public static final String OBJECT_DELETED = "j2ee.object.deleted";
040
041 /**
042 * A state manageable object entered the starting state
043 */
044 public static final String STATE_STARTING = "j2ee.state.starting";
045
046 /**
047 * A state manageable object entered the running state
048 */
049 public static final String STATE_RUNNING = "j2ee.state.running";
050
051 /**
052 * A state manageable object entered the stopping state
053 */
054 public static final String STATE_STOPPING = "j2ee.state.stopping";
055
056 /**
057 * A state manageable object entered the stopped state.
058 */
059 public static final String STATE_STOPPED = "j2ee.state.stopped";
060
061 /**
062 * A state manageable object entered the failed state
063 */
064 public static final String STATE_FAILED = "j2ee.state.failed";
065
066 /**
067 * An attribute has change value
068 */
069 public static final String ATTRIBUTE_CHANGED = "j2ee.attribute.changed";
070
071 /**
072 * An array containg all of the know J2EE notification types
073 */
074 public static final String[] TYPES = new String[]{
075 OBJECT_CREATED, OBJECT_DELETED,
076 STATE_STARTING, STATE_RUNNING, STATE_STOPPING, STATE_STOPPED, STATE_FAILED,
077 ATTRIBUTE_CHANGED
078 };
079 }