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
DatabaseException
public void close() throws DatabaseException
DatabaseException
public Database openDatabase(Transaction txn, java.lang.String databaseName, DatabaseConfig dbConfig) throws DatabaseException
DatabaseException
public SecondaryDatabase openSecondaryDatabase(Transaction txn, java.lang.String databaseName, Database primaryDatabase, SecondaryConfig dbConfig) throws DatabaseException
DatabaseException
public void removeDatabase(Transaction txn, java.lang.String databaseName) throws DatabaseException
DatabaseException
public void renameDatabase(Transaction txn, java.lang.String databaseName, java.lang.String newName) throws DatabaseException
DatabaseException
public long truncateDatabase(Transaction txn, java.lang.String databaseName, boolean returnCount) throws DatabaseException
DatabaseException
public java.io.File getHome() throws DatabaseException
DatabaseException
public Transaction beginTransaction(Transaction parent, TransactionConfig txnConfig) throws DatabaseException
DatabaseException
public void checkpoint(CheckpointConfig ckptConfig) throws DatabaseException
DatabaseException
public void sync() throws DatabaseException
DatabaseException
public int cleanLog() throws DatabaseException
DatabaseException
public void evictMemory() throws DatabaseException
DatabaseException
public void compress() throws DatabaseException
DatabaseException
public EnvironmentConfig getConfig() throws DatabaseException
DatabaseException
public void setMutableConfig(EnvironmentMutableConfig mutableConfig) throws DatabaseException
DatabaseException
public EnvironmentMutableConfig getMutableConfig() throws DatabaseException
DatabaseException
public EnvironmentStats getStats(StatsConfig config) throws DatabaseException
DatabaseException
public LockStats getLockStats(StatsConfig config) throws DatabaseException
DatabaseException
public TransactionStats getTransactionStats(StatsConfig config) throws DatabaseException
DatabaseException
public java.util.List getDatabaseNames() throws DatabaseException
DatabaseException
public boolean scanLog(long startPosition, long endPosition, LogScanConfig config, LogScanner scanner) throws DatabaseException
DatabaseException
public boolean verify(VerifyConfig config, java.io.PrintStream out) throws DatabaseException
DatabaseException
public Transaction getThreadTransaction() throws DatabaseException
DatabaseException
public 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