/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://glassfish.dev.java.net/public/CDDLv1.0.html.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* HEADER in each file and include the License file at
* https://glassfish.dev.java.net/public/CDDLv1.0.html.
*
* If applicable add the following below this CDDL HEADER,
* with the fields enclosed by brackets "[]" replaced with
* your own identifying information: Portions Copyright
* [year] [name of copyright owner]
*/
/*
* @(#)ConnectionNotification.java 1.8 05/02/06
*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*/
package com.sun.messaging.jms.management.server;
import javax.management.Notification;
/**
* Class containing information on cluster operations.
*
* <P>
* The MQ specific fields in this notification is TBD.
*
* @version 1.8 06/05/02
* @author Isa Hashim
*/
public class ConnectionNotification extends MQNotification {
/**
* A connection was created.
*/
public static final String CONNECTION_OPEN = MQNotification.PREFIX + "connection.open";
/**
* A connection was closed.
*/
public static final String CONNECTION_CLOSE = MQNotification.PREFIX + "connection.close";
/**
* A connection was rejected.
*/
public static final String CONNECTION_REJECT = MQNotification.PREFIX + "connection.reject";
private String id;
private String serviceName, userName, remoteHost;
/**
* Creates a ConnectionNotification object.
*
* @param type The notification type.
* @param source The notification source.
* @param sequenceNumber The notification sequence number within the source object.
*/
public ConnectionNotification(String type, Object source, long sequenceNumber) {
super(type, source, sequenceNumber);
}
public void setConnectionID(String id) {
this.id = id;
}
public String getConnectionID() {
return(id);
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getServiceName() {
return(serviceName);
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserName() {
return(userName);
}
public void setRemoteHost(String remoteHost) {
this.remoteHost = remoteHost;
}
public String getRemoteHost() {
return(remoteHost);
}
}
|