KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > PreloadStatus


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: PreloadStatus.java,v 1.5 2006/10/30 21:14:12 bostic Exp $
7  */

8
9 package com.sleepycat.je;
10
11 import java.io.Serializable JavaDoc;
12
13 /**
14  * Javadoc for this public class is generated
15  * via the doc templates in the doc_src directory.
16  */

17 public class PreloadStatus implements Serializable JavaDoc {
18     /* For toString */
19     private String JavaDoc statusName;
20
21     private PreloadStatus(String JavaDoc statusName) {
22     this.statusName = statusName;
23     }
24
25     public String JavaDoc toString() {
26     return "PreloadStatus." + statusName;
27     }
28
29     /* preload() was successful. */
30     public static final PreloadStatus SUCCESS =
31     new PreloadStatus("SUCCESS");
32
33     /* preload() filled maxBytes of the cache. */
34     public static final PreloadStatus FILLED_CACHE =
35     new PreloadStatus("FILLED_CACHE");
36
37     /* preload() took more than maxMillisecs. */
38     public static final PreloadStatus EXCEEDED_TIME =
39     new PreloadStatus("EXCEEDED_TIME");
40 }
41
Popular Tags