001 /* 002 * Copyright 2009 Red Hat, Inc. 003 * Red Hat licenses this file to you under the Apache License, version 004 * 2.0 (the "License"); you may not use this file except in compliance 005 * with the License. You may obtain a copy of the License at 006 * http://www.apache.org/licenses/LICENSE-2.0 007 * Unless required by applicable law or agreed to in writing, software 008 * distributed under the License is distributed on an "AS IS" BASIS, 009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 010 * implied. See the License for the specific language governing 011 * permissions and limitations under the License. 012 */ 013 014 package org.hornetq.api.core.management; 015 016 /** 017 * Types of notification emmitted by HornetQ servers. 018 * 019 * @author <a href="mailto:jmesnil@redhat.com">Jeff Mesnil</a> 020 */ 021 public enum NotificationType 022 { 023 BINDING_ADDED(0), 024 BINDING_REMOVED(1), 025 CONSUMER_CREATED(2), 026 CONSUMER_CLOSED(3), 027 SECURITY_AUTHENTICATION_VIOLATION(6), 028 SECURITY_PERMISSION_VIOLATION(7), 029 DISCOVERY_GROUP_STARTED(8), 030 DISCOVERY_GROUP_STOPPED(9), 031 BROADCAST_GROUP_STARTED(10), 032 BROADCAST_GROUP_STOPPED(11), 033 BRIDGE_STARTED(12), 034 BRIDGE_STOPPED(13), 035 CLUSTER_CONNECTION_STARTED(14), 036 CLUSTER_CONNECTION_STOPPED(15), 037 ACCEPTOR_STARTED(16), 038 ACCEPTOR_STOPPED(17), 039 PROPOSAL(18), 040 PROPOSAL_RESPONSE(19); 041 042 private final int value; 043 044 private NotificationType(final int value) 045 { 046 this.value = value; 047 } 048 049 public int intValue() 050 { 051 return value; 052 } 053 }