• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/db/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: VerboseConfig.java,v 12.8 2008/04/30 20:04:13 bschmeck Exp $
7 */
8
9package com.sleepycat.db;
10
11import com.sleepycat.db.internal.DbConstants;
12import com.sleepycat.db.internal.DbEnv;
13
14/** Specifies the attributes of a verification operation. */
15public final class VerboseConfig {
16    /**
17    Display additional information when doing deadlock detection.
18    */
19    public static final VerboseConfig DEADLOCK =
20        new VerboseConfig("DEADLOCK", DbConstants.DB_VERB_DEADLOCK);
21    /**
22    Display additional information when performing filesystem operations such
23    as open, close or rename. May not be available on all platforms.
24    */
25    public static final VerboseConfig FILEOPS =
26        new VerboseConfig("FILEOPS", DbConstants.DB_VERB_FILEOPS);
27    /**
28    Display additional information when performing all filesystem operations,
29    including read and write. May not be available on all platforms.
30    */
31    public static final VerboseConfig FILEOPS_ALL =
32        new VerboseConfig("FILEOPS_ALL", DbConstants.DB_VERB_FILEOPS_ALL);
33    /**
34    Display additional information when performing recovery.
35    */
36    public static final VerboseConfig RECOVERY =
37        new VerboseConfig("RECOVERY", DbConstants.DB_VERB_RECOVERY);
38    /**
39    Display additional information concerning support for {@link
40    EnvironmentConfig#setRegister}.
41    */
42    public static final VerboseConfig REGISTER =
43        new VerboseConfig("REGISTER", DbConstants.DB_VERB_REGISTER);
44    /**
45    Display all detailed information about replication.  This includes the
46    information displayed by all of the other REPLICATION_* and REPMGR_*
47    values.
48    */
49    public static final VerboseConfig REPLICATION =
50        new VerboseConfig("REPLICATION", DbConstants.DB_VERB_REPLICATION);
51    /**
52    Display detailed information about Replication Manager connection failures.
53    */
54    public static final VerboseConfig REPMGR_CONNFAIL =
55        new VerboseConfig("REPLICATIONMGR_CONNFAIL", DbConstants.DB_VERB_REPMGR_CONNFAIL);
56    /**
57    Display detailed information about genereal Replication Manager processing.
58    */
59    public static final VerboseConfig REPMGR_MISC =
60        new VerboseConfig("REPLICATIONMGR_MISC", DbConstants.DB_VERB_REPMGR_MISC);
61    /**
62    Display detailed information about replication elections.
63    */
64    public static final VerboseConfig REPLICATION_ELECTION =
65        new VerboseConfig("REPLICATION_ELECTION", DbConstants.DB_VERB_REP_ELECT);
66    /**
67    Display detailed information about replication master leases.
68    */
69    public static final VerboseConfig REPLICATION_LEASE =
70        new VerboseConfig("REPLICATION_LEASE", DbConstants.DB_VERB_REP_LEASE);
71    /**
72    Display detailed information about general replication processing not
73    covered by the other REPLICATION_* values.
74    */
75    public static final VerboseConfig REPLICATION_MISC =
76        new VerboseConfig("REPLICATION_MISC", DbConstants.DB_VERB_REP_MISC);
77    /**
78    Display detailed information about replication message processing.
79    */
80    public static final VerboseConfig REPLICATION_MSGS =
81        new VerboseConfig("REPLICATION_MSGS", DbConstants.DB_VERB_REP_MSGS);
82    /**
83    Display detailed information about replication client synchronization.
84    */
85    public static final VerboseConfig REPLICATION_SYNC =
86        new VerboseConfig("REPLICATION_SYNC", DbConstants.DB_VERB_REP_SYNC);
87    /**
88    Display the waits-for table when doing deadlock detection.
89    */
90    public static final VerboseConfig WAITSFOR =
91        new VerboseConfig("WAITSFOR", DbConstants.DB_VERB_WAITSFOR);
92
93    /* Package */
94    int getInternalFlag() {
95        return verboseFlag;
96    }
97    /* For toString */
98    private String verboseName;
99    private int verboseFlag;
100
101    private VerboseConfig(final String verboseName, int verboseFlag) {
102        this.verboseName = verboseName;
103        this.verboseFlag = verboseFlag;
104    }
105
106    /** {@inheritDoc} */
107    public String toString() {
108        return "VerboseConfig." + verboseName;
109    }
110}
111
112