KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.apache.activemq.util.IntrospectionSupport;
21
22 /**
23  *
24  * @openwire:marshaller code="53"
25  * @version $Revision: 1.6 $
26  */

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

47     public String JavaDoc getMessage() {
48         return message;
49     }
50
51     /**
52      * @openwire:property version=1
53      */

54     public void setMessage(String JavaDoc message) {
55         this.message = message;
56     }
57
58     public boolean isMarshallAware() {
59         return false;
60     }
61
62     public String JavaDoc toString() {
63         return IntrospectionSupport.toString(this, JournalTrace.class);
64     }
65 }
66
Popular Tags