|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.Environment
public class Environment
Javadoc for this public class is generated via the doc templates in the doc_src directory.
Field Summary | |
---|---|
protected EnvironmentImpl |
environmentImpl
|
Constructor Summary | |
---|---|
Environment(File envHome)
Get an Environment for an existing EnvironmentImpl. |
|
Environment(File envHome,
EnvironmentConfig configuration)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
Method Summary | |
---|---|
(package private) void |
addReferringHandle(Database db)
|
(package private) void |
addReferringHandle(Transaction txn)
Let the Environment remember what's opened against it. |
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. |
protected 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. |
List |
getDatabaseNames()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
(package private) TransactionConfig |
getDefaultTxnConfig()
Returns the default txn config for this environment handle. |
(package private) EnvironmentImpl |
getEnvironmentImpl()
Internal entrypoint. |
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. |
(package private) long |
getMemoryUsage()
Returns the current memory usage in bytes for all btrees in the environmentImpl. |
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,
String databaseName,
DatabaseConfig dbConfig)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
SecondaryDatabase |
openSecondaryDatabase(Transaction txn,
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,
String databaseName)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
(package private) void |
removeReferringHandle(Database db)
The referring db has been closed. |
(package private) void |
removeReferringHandle(Transaction txn)
The referring Transaction has been closed. |
void |
renameDatabase(Transaction txn,
String databaseName,
String newName)
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,
String databaseName,
boolean returnCount)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
(package private) void |
upgrade()
Not public yet, since there's nothing to upgrade. |
boolean |
verify(VerifyConfig config,
PrintStream out)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EnvironmentImpl environmentImpl
Constructor Detail |
---|
public Environment(File envHome, EnvironmentConfig configuration) throws DatabaseException
DatabaseException
Environment(File envHome) throws DatabaseException
DatabaseException
Method Detail |
---|
public void close() throws DatabaseException
DatabaseException
public Database openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig) throws DatabaseException
DatabaseException
public SecondaryDatabase openSecondaryDatabase(Transaction txn, String databaseName, Database primaryDatabase, SecondaryConfig dbConfig) throws DatabaseException
DatabaseException
public void removeDatabase(Transaction txn, String databaseName) throws DatabaseException
DatabaseException
public void renameDatabase(Transaction txn, String databaseName, String newName) throws DatabaseException
DatabaseException
public long truncateDatabase(Transaction txn, String databaseName, boolean returnCount) throws DatabaseException
DatabaseException
long getMemoryUsage() throws DatabaseException
DatabaseException
public File getHome() throws DatabaseException
DatabaseException
TransactionConfig getDefaultTxnConfig()
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
void upgrade() 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 List getDatabaseNames() throws DatabaseException
DatabaseException
public boolean verify(VerifyConfig config, PrintStream out) throws DatabaseException
DatabaseException
public Transaction getThreadTransaction() throws DatabaseException
DatabaseException
public void setThreadTransaction(Transaction txn)
void addReferringHandle(Database db)
void addReferringHandle(Transaction txn)
void removeReferringHandle(Database db)
void removeReferringHandle(Transaction txn)
EnvironmentImpl getEnvironmentImpl()
protected void checkHandleIsValid() throws DatabaseException
DatabaseException
protected void checkEnv() throws DatabaseException, RunRecoveryException
DatabaseException
RunRecoveryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |