public class Environment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHECKPOINTER_NAME
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
static java.lang.String |
CLEANER_NAME
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
protected EnvironmentImpl |
environmentImpl |
static java.lang.String |
INCOMP_NAME
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
| Constructor and Description |
|---|
Environment(java.io.File envHome,
EnvironmentConfig configuration)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(java.lang.Object o) |
Transaction |
beginTransaction(Transaction parent,
TransactionConfig txnConfig)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
protected void |
checkEnv()
Throws if the environmentImpl is invalid.
|
void |
checkHandleIsValid() |
void |
checkpoint(CheckpointConfig ckptConfig)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
int |
cleanLog()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
close()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
compress()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
evictMemory()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
EnvironmentConfig |
getConfig()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
java.util.List |
getDatabaseNames()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
java.io.File |
getHome()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
LockStats |
getLockStats(StatsConfig config)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
EnvironmentMutableConfig |
getMutableConfig()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
EnvironmentStats |
getStats(StatsConfig config)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
Transaction |
getThreadTransaction()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
TransactionStats |
getTransactionStats(StatsConfig config)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
Database |
openDatabase(Transaction txn,
java.lang.String databaseName,
DatabaseConfig dbConfig)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
SecondaryDatabase |
openSecondaryDatabase(Transaction txn,
java.lang.String databaseName,
Database primaryDatabase,
SecondaryConfig dbConfig)
Javadoc for this public class is generated via
the doc templates in the doc_src directory.
|
void |
removeDatabase(Transaction txn,
java.lang.String databaseName)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
renameDatabase(Transaction txn,
java.lang.String databaseName,
java.lang.String newName)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
boolean |
scanLog(long startPosition,
long endPosition,
LogScanConfig config,
LogScanner scanner)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
setMutableConfig(EnvironmentMutableConfig mutableConfig)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
setThreadTransaction(Transaction txn)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
void |
sync()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
long |
truncateDatabase(Transaction txn,
java.lang.String databaseName,
boolean returnCount)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
boolean |
verify(VerifyConfig config,
java.io.PrintStream out)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
protected EnvironmentImpl environmentImpl
public static final java.lang.String CLEANER_NAME
public static final java.lang.String INCOMP_NAME
public static final java.lang.String CHECKPOINTER_NAME
public Environment(java.io.File envHome,
EnvironmentConfig configuration)
throws DatabaseException
DatabaseExceptionpublic void close()
throws DatabaseException
DatabaseExceptionpublic Database openDatabase(Transaction txn, java.lang.String databaseName, DatabaseConfig dbConfig) throws DatabaseException
DatabaseExceptionpublic SecondaryDatabase openSecondaryDatabase(Transaction txn, java.lang.String databaseName, Database primaryDatabase, SecondaryConfig dbConfig) throws DatabaseException
DatabaseExceptionpublic void removeDatabase(Transaction txn, java.lang.String databaseName) throws DatabaseException
DatabaseExceptionpublic void renameDatabase(Transaction txn, java.lang.String databaseName, java.lang.String newName) throws DatabaseException
DatabaseExceptionpublic long truncateDatabase(Transaction txn, java.lang.String databaseName, boolean returnCount) throws DatabaseException
DatabaseExceptionpublic java.io.File getHome()
throws DatabaseException
DatabaseExceptionpublic Transaction beginTransaction(Transaction parent, TransactionConfig txnConfig) throws DatabaseException
DatabaseExceptionpublic void checkpoint(CheckpointConfig ckptConfig) throws DatabaseException
DatabaseExceptionpublic void sync()
throws DatabaseException
DatabaseExceptionpublic int cleanLog()
throws DatabaseException
DatabaseExceptionpublic void evictMemory()
throws DatabaseException
DatabaseExceptionpublic void compress()
throws DatabaseException
DatabaseExceptionpublic EnvironmentConfig getConfig() throws DatabaseException
DatabaseExceptionpublic void setMutableConfig(EnvironmentMutableConfig mutableConfig) throws DatabaseException
DatabaseExceptionpublic EnvironmentMutableConfig getMutableConfig() throws DatabaseException
DatabaseExceptionpublic EnvironmentStats getStats(StatsConfig config) throws DatabaseException
DatabaseExceptionpublic LockStats getLockStats(StatsConfig config) throws DatabaseException
DatabaseExceptionpublic TransactionStats getTransactionStats(StatsConfig config) throws DatabaseException
DatabaseExceptionpublic java.util.List getDatabaseNames()
throws DatabaseException
DatabaseExceptionpublic boolean scanLog(long startPosition,
long endPosition,
LogScanConfig config,
LogScanner scanner)
throws DatabaseException
DatabaseExceptionpublic boolean verify(VerifyConfig config, java.io.PrintStream out) throws DatabaseException
DatabaseExceptionpublic Transaction getThreadTransaction() throws DatabaseException
DatabaseExceptionpublic void setThreadTransaction(Transaction txn)
public void addReference(java.lang.Object o)
public void checkHandleIsValid()
throws DatabaseException
DatabaseException - if the environment is not open.protected void checkEnv()
throws DatabaseException,
RunRecoveryException