KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > protomatter > syslog > JMSConstants


1 package com.protomatter.syslog;
2
3 /**
4  * {{{ The Protomatter Software License, Version 1.0
5  * derived from The Apache Software License, Version 1.1
6  *
7  * Copyright (c) 1998-2002 Nate Sammons. All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in
18  * the documentation and/or other materials provided with the
19  * distribution.
20  *
21  * 3. The end-user documentation included with the redistribution,
22  * if any, must include the following acknowledgment:
23  * "This product includes software developed for the
24  * Protomatter Software Project
25  * (http://protomatter.sourceforge.net/)."
26  * Alternately, this acknowledgment may appear in the software itself,
27  * if and wherever such third-party acknowledgments normally appear.
28  *
29  * 4. The names "Protomatter" and "Protomatter Software Project" must
30  * not be used to endorse or promote products derived from this
31  * software without prior written permission. For written
32  * permission, please contact support@protomatter.com.
33  *
34  * 5. Products derived from this software may not be called "Protomatter",
35  * nor may "Protomatter" appear in their name, without prior written
36  * permission of the Protomatter Software Project
37  * (support@protomatter.com).
38  *
39  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
40  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
41  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
42  * DISCLAIMED. IN NO EVENT SHALL THE PROTOMATTER SOFTWARE PROJECT OR
43  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
45  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
46  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
47  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
48  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
49  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50  * SUCH DAMAGE. }}}
51  */

52
53 import java.io.*;
54 import java.net.*;
55 import java.util.*;
56 import java.text.*;
57
58 import javax.jms.*;
59 import javax.naming.*;
60
61 import com.protomatter.util.*;
62
63 /**
64  * Constants for JMS-related Syslog functions.
65  */

66 public interface JMSConstants
67 {
68   /**
69    * The message property declaring that the
70    * given JMS message is a syslog message.
71    * This is a String property, and its
72    * value is always "<TT>SyslogMessage</TT>".
73    */

74   public static final String JavaDoc JMS_PROP_MSG_TYPE = "messagetype";
75
76   /**
77    * The value of the message property declaring that the
78    * given JMS message is a syslog message.
79    * The value is "<TT>SyslogMessage</TT>".
80    */

81   public static final String JavaDoc JMS_PROP_MSG_TYPE_VALUE = "SyslogMessage";
82
83   /**
84    * The message property of the originating
85    * host's IP address. The value of this
86    * property is "<tt>host</tt>".
87    * This is a String property.
88    */

89   public static final String JavaDoc JMS_PROP_HOST = "host";
90
91   /**
92    * The message property of the message send time.
93    * The value of this property is "<tt>time</tt>".
94    * This is a long property.
95    */

96   public static final String JavaDoc JMS_PROP_TIME = "time";
97
98   /**
99    * The message property of the message channel.
100    * The value of this property is "<tt>channel</tt>".
101    * This is a String property.
102    */

103   public static final String JavaDoc JMS_PROP_CHANNEL = "channel";
104
105   /**
106    * The message property of the message logger's
107    * class name. The value of this property is
108    * "<tt>logger</tt>".
109    * This is a String property.
110    */

111   public static final String JavaDoc JMS_PROP_LOGGER = "logger";
112
113   /**
114    * The message property of the message's
115    * short text. The value of this property is
116    * "<tt>message</tt>".
117    * This is a String property.
118    */

119   public static final String JavaDoc JMS_PROP_MESSAGE = "message";
120
121   /**
122    * The message property of the message's
123    * severity level. The value of this property is
124    * "<tt>level</tt>".
125    * This is an integer property.
126    */

127   public static final String JavaDoc JMS_PROP_LEVEL = "level";
128
129   /**
130    * The message property of the originating thread's
131    * name. The value of this property is "<tt>thread</tt>".
132    * This is a String property.
133    */

134   public static final String JavaDoc JMS_PROP_THREAD = "thread";
135 }
136
Popular Tags