KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > PmPoolEvent


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo;
13
14 /**
15  * Event logged for PM pool operations.
16  */

17 public class PmPoolEvent extends ServerLogEvent {
18
19     private int maxIdle;
20     private int idle;
21
22     public PmPoolEvent(int type, int idle, int maxIdle) {
23         super(type, null);
24         this.maxIdle = maxIdle;
25         this.idle = idle;
26         totalMs = 0;
27     }
28
29     public String JavaDoc getDescription() {
30         if (description == null) {
31             description = "idle " + idle + "/" + maxIdle;
32         }
33         return description;
34     }
35
36 }
37
Popular Tags