%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
net.sf.infrared.base.model.AbstractStatistics |
|
|
1 | /* |
|
2 | * Copyright 2005 Tavant Technologies and Contributors |
|
3 | * |
|
4 | * Licensed under the Apache License, Version 2.0 (the "License") |
|
5 | * you may not use this file except in compliance with the License. |
|
6 | * You may obtain a copy of the License at |
|
7 | * |
|
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 | * |
|
10 | * Unless required by applicable law or agreed to in writing, software |
|
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 | * See the License for the specific language governing permissions and |
|
14 | * limitations under the License. |
|
15 | * |
|
16 | * |
|
17 | * |
|
18 | * Original Author: binil.thomas (Tavant Technologies) |
|
19 | * Contributor(s): -; |
|
20 | * |
|
21 | */ |
|
22 | package net.sf.infrared.base.model; |
|
23 | ||
24 | import java.io.Serializable; |
|
25 | ||
26 | /** |
|
27 | * Abstract base class for statistics. |
|
28 | * |
|
29 | * @author binil.thomas |
|
30 | */ |
|
31 | public abstract class AbstractStatistics implements Serializable { |
|
32 | private String applicationName; |
|
33 | ||
34 | private String instanceId; |
|
35 | ||
36 | 0 | public AbstractStatistics(){ |
37 | 0 | } |
38 | ||
39 | 16 | public AbstractStatistics(String appName, String instId) { |
40 | 16 | this.applicationName = appName; |
41 | 16 | this.instanceId = instId; |
42 | 16 | } |
43 | ||
44 | public String getApplicationName() { |
|
45 | 10 | return applicationName; |
46 | } |
|
47 | ||
48 | public void setApplicationName(String applicationName) { |
|
49 | 0 | this.applicationName = applicationName; |
50 | 0 | } |
51 | ||
52 | public String getInstanceId() { |
|
53 | 8 | return instanceId; |
54 | } |
|
55 | ||
56 | public void setInstanceId(String id) { |
|
57 | 0 | this.instanceId = id; |
58 | 0 | } |
59 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |