Package: KernelStatus

KernelStatus

nameinstructionbranchcomplexitylinemethod
KernelStatus()
M: 12 C: 9
43%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
getStatus()
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setStarted()
M: 6 C: 4
40%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.nano.core.internal;
13:
14: final class KernelStatus implements KernelStatusMBean {
15:
16: static final String STATUS_STARTING = "STARTING";
17:
18: static final String STATUS_STARTED = "STARTED";
19:
20: private volatile String status = STATUS_STARTING;
21:
22: public String getStatus() {
23: return this.status;
24: }
25:
26: public void setStarted() {
27: this.status = STATUS_STARTED;
28: }
29:
30: }