%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.stratum.scheduler.LoggerConfig |
|
|
1 | package org.apache.stratum.scheduler; |
|
2 | ||
3 | /* |
|
4 | * Copyright 2001-2005 The Apache Software Foundation or its licensors, |
|
5 | * as applicable. |
|
6 | * |
|
7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
8 | * you may not use this file except in compliance with the License. |
|
9 | * You may obtain a copy of the License at |
|
10 | * |
|
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
12 | * |
|
13 | * Unless required by applicable law or agreed to in writing, software |
|
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
16 | * See the License for the specific language governing permissions and |
|
17 | * limitations under the License. |
|
18 | */ |
|
19 | ||
20 | /** |
|
21 | * This bean represents the settings used to assign logger |
|
22 | * properties for use in the Quartz scheduler. |
|
23 | * |
|
24 | * @author <a href="mailto:john@zenplex.com">John Thorhauer</a> |
|
25 | * @version $Id: LoggerConfig.java 227507 2005-08-04 22:14:48Z henning $ |
|
26 | */ |
|
27 | public class LoggerConfig |
|
28 | { |
|
29 | ||
30 | /** |
|
31 | * The name of the logger. |
|
32 | */ |
|
33 | private String name; |
|
34 | ||
35 | /** |
|
36 | * The classname the is the Quartz logger. |
|
37 | */ |
|
38 | private String className; |
|
39 | ||
40 | /** |
|
41 | * The priority for the logger. |
|
42 | */ |
|
43 | private String priority; |
|
44 | ||
45 | /** |
|
46 | * The output file for the Quartz logger. |
|
47 | */ |
|
48 | private String outputFile; |
|
49 | ||
50 | /** |
|
51 | * The category for the Quartz logger. |
|
52 | */ |
|
53 | private String category; |
|
54 | ||
55 | /** |
|
56 | * Default contructor |
|
57 | */ |
|
58 | public LoggerConfig() |
|
59 | 6 | { |
60 | 6 | } |
61 | ||
62 | /** |
|
63 | * This is the name of the logger that has will registered with Quartz. |
|
64 | * |
|
65 | * @param s logger name |
|
66 | */ |
|
67 | public void setName(String s) |
|
68 | { |
|
69 | 6 | this.name = s; |
70 | 6 | } |
71 | ||
72 | /** |
|
73 | * @return the name of the logger |
|
74 | */ |
|
75 | public String getName() |
|
76 | { |
|
77 | 3 | return this.name; |
78 | } |
|
79 | ||
80 | /** |
|
81 | * This is the full package/class name of the |
|
82 | * class used for the Quartz logger. |
|
83 | * |
|
84 | * @param s the full package/class name used for the logger |
|
85 | */ |
|
86 | public void setClassName(String s) |
|
87 | { |
|
88 | 6 | this.className = s; |
89 | 6 | } |
90 | ||
91 | /** |
|
92 | * @return the full package/class name used for the logger |
|
93 | */ |
|
94 | public String getClassName() |
|
95 | { |
|
96 | 3 | return this.className; |
97 | 6 | } |
98 | 6 | |
99 | /** |
|
100 | * The priority of the logger |
|
101 | * |
|
102 | * @param s priority |
|
103 | */ |
|
104 | public void setPriority(String s) |
|
105 | { |
|
106 | 6 | this.priority = s; |
107 | 12 | } |
108 | 6 | |
109 | /** |
|
110 | * @return the priority of the logger |
|
111 | */ |
|
112 | public String getPriority() |
|
113 | { |
|
114 | 3 | return this.priority; |
115 | 3 | } |
116 | ||
117 | /** |
|
118 | * The outputFile of the logger |
|
119 | * |
|
120 | * @param s outputFile |
|
121 | */ |
|
122 | public void setOutputFile(String s) |
|
123 | { |
|
124 | 6 | this.outputFile = s; |
125 | 6 | } |
126 | 6 | |
127 | 6 | /** |
128 | * @return the outputFile of the logger |
|
129 | */ |
|
130 | public String getOutputFile() |
|
131 | { |
|
132 | 3 | return this.outputFile; |
133 | } |
|
134 | 3 | |
135 | /** |
|
136 | * The category of the logger |
|
137 | * |
|
138 | * @param s category |
|
139 | */ |
|
140 | public void setCategory(String s) |
|
141 | { |
|
142 | 0 | this.category = s; |
143 | 0 | } |
144 | 6 | |
145 | 6 | /** |
146 | * @return the category of the logger |
|
147 | */ |
|
148 | public String getCategory() |
|
149 | { |
|
150 | 3 | return this.category; |
151 | } |
|
152 | 3 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |