KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > command > DiscoveryEvent


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.command;
19
20
21 /**
22  * Represents a discovery event containing the details of the service
23  *
24  * @openwire:marshaller code="40"
25  * @version $Revision:$
26  */

27 public class DiscoveryEvent implements DataStructure {
28
29     public static final byte DATA_STRUCTURE_TYPE=CommandTypes.DISCOVERY_EVENT;
30
31     public byte getDataStructureType() {
32         return DATA_STRUCTURE_TYPE;
33     }
34
35     protected String JavaDoc serviceName;
36     protected String JavaDoc brokerName;
37
38     public DiscoveryEvent() {
39     }
40     
41     public DiscoveryEvent(String JavaDoc serviceName) {
42         this.serviceName = serviceName;
43     }
44
45     /**
46      * @openwire:property version=1
47      */

48     public String JavaDoc getServiceName() {
49         return serviceName;
50     }
51     public void setServiceName(String JavaDoc serviceName) {
52         this.serviceName = serviceName;
53     }
54     
55     /**
56      * @openwire:property version=1
57      */

58     public String JavaDoc getBrokerName(){
59         return brokerName;
60     }
61     public void setBrokerName(String JavaDoc name){
62         this.brokerName = name;
63     }
64
65     public boolean isMarshallAware() {
66         return false;
67     }
68 }
69
Popular Tags