01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdo;
12:
13: /**
14: * Event logged for PM pool operations.
15: */
16: public class PmPoolEvent extends ServerLogEvent {
17:
18: private int maxIdle;
19: private int idle;
20:
21: public PmPoolEvent(int type, int idle, int maxIdle) {
22: super (type, null);
23: this .maxIdle = maxIdle;
24: this .idle = idle;
25: totalMs = 0;
26: }
27:
28: public String getDescription() {
29: if (description == null) {
30: description = "idle " + idle + "/" + maxIdle;
31: }
32: return description;
33: }
34:
35: }
|