KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > beans > LogEntry


1 /*
2  * $Id: LogEntry.java,v 1.3 2005/06/07 12:32:26 bel70 Exp $
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the Mozilla Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific language governing rights and
13  * limitations under the License.
14  *
15  * The Original Code is JGossip forum code.
16  *
17  * The Initial Developer of the Original Code is the JResearch, Org.
18  * Portions created by the Initial Developer are Copyright (C) 2004
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dmitriy Belov <bel@jresearch.org>
23  * .
24  * * ***** END LICENSE BLOCK ***** */

25 /*
26  * Created on 12.08.2004
27  *
28  */

29 package org.jresearch.gossip.beans;
30
31 /**
32  * @author Dmitry Belov
33  *
34  */

35 public class LogEntry {
36
37     private String JavaDoc log_date;
38
39     private String JavaDoc logger;
40
41     private String JavaDoc log_level;
42
43     private String JavaDoc message;
44
45     private String JavaDoc remote_ip;
46
47     private String JavaDoc user_name;
48
49     private String JavaDoc session_id;
50
51     /**
52      * @param log_date
53      * @param logger
54      * @param log_level
55      * @param message
56      * @param remote_ip
57      * @param user_name
58      * @param session_id
59      */

60     public LogEntry(String JavaDoc log_date, String JavaDoc logger, String JavaDoc log_level,
61             String JavaDoc message, String JavaDoc remote_ip, String JavaDoc user_name,
62             String JavaDoc session_id) {
63         super();
64         this.log_date = log_date;
65         this.logger = logger;
66         this.log_level = log_level;
67         this.message = message;
68         this.remote_ip = remote_ip;
69         this.user_name = user_name;
70         this.session_id = session_id;
71     }
72
73     /**
74      *
75      */

76     public LogEntry() {
77
78     }
79
80     /**
81      * @param log_date
82      * The log_date to set.
83      */

84     public void setLog_date(String JavaDoc log_date) {
85         this.log_date = log_date;
86     }
87
88     /**
89      * @param log_level
90      * The log_level to set.
91      */

92     public void setLog_level(String JavaDoc log_level) {
93         this.log_level = log_level;
94     }
95
96     /**
97      * @param logger
98      * The logger to set.
99      */

100     public void setLogger(String JavaDoc logger) {
101         this.logger = logger;
102     }
103
104     /**
105      * @param message
106      * The message to set.
107      */

108     public void setMessage(String JavaDoc message) {
109         this.message = message;
110     }
111
112     /**
113      * @param remote_ip
114      * The remote_ip to set.
115      */

116     public void setRemote_ip(String JavaDoc remote_ip) {
117         this.remote_ip = remote_ip;
118     }
119
120     /**
121      * @param session_id
122      * The session_id to set.
123      */

124     public void setSession_id(String JavaDoc session_id) {
125         this.session_id = session_id;
126     }
127
128     /**
129      * @param user_name
130      * The user_name to set.
131      */

132     public void setUser_name(String JavaDoc user_name) {
133         this.user_name = user_name;
134     }
135
136     /**
137      * @return Returns the log_date.
138      */

139     public String JavaDoc getLog_date() {
140         return log_date;
141     }
142
143     /**
144      * @return Returns the log_level.
145      */

146     public String JavaDoc getLog_level() {
147         return log_level;
148     }
149
150     /**
151      * @return Returns the logger.
152      */

153     public String JavaDoc getLogger() {
154         return logger;
155     }
156
157     /**
158      * @return Returns the message.
159      */

160     public String JavaDoc getMessage() {
161         return message;
162     }
163
164     /**
165      * @return Returns the remote_ip.
166      */

167     public String JavaDoc getRemote_ip() {
168         return remote_ip;
169     }
170
171     /**
172      * @return Returns the session_id.
173      */

174     public String JavaDoc getSession_id() {
175         return session_id;
176     }
177
178     /**
179      * @return Returns the user_name.
180      */

181     public String JavaDoc getUser_name() {
182         return user_name;
183     }
184
185 }
Popular Tags