org.ektorp
Class DbInfo

java.lang.Object
  extended by org.ektorp.DbInfo
All Implemented Interfaces:
Serializable

public class DbInfo
extends Object
implements Serializable

Author:
henrik lundgren
See Also:
Serialized Form

Constructor Summary
DbInfo(String dbName)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDbName()
           
 int getDiskFormatVersion()
           
 long getDiskSize()
           
 long getDocCount()
           
 int getDocDelCount()
           
 long getInstanceStartTime()
           
 int getPurgeSeq()
           
 Map<String,Object> getUnknownFields()
           
 long getUpdateSeq()
           
 String getUpdateSeqAsString()
          Cloudant uses generated strings for update sequence.
 int hashCode()
           
 boolean isCompactRunning()
           
 boolean isUpdateSeqNumeric()
           
 void setUnknown(String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInfo

public DbInfo(String dbName)
Method Detail

isCompactRunning

public boolean isCompactRunning()

getDbName

public String getDbName()
Returns:
Name of the database

getDiskFormatVersion

public int getDiskFormatVersion()
Returns:
Current version of the internal database format on disk

getDiskSize

public long getDiskSize()
Returns:
Current size in Bytes of the database (Note: Size of views indexes on disk are not included)

getDocCount

public long getDocCount()
Returns:
Number of documents (including design documents) in the database.

getDocDelCount

public int getDocDelCount()
Returns:

getInstanceStartTime

public long getInstanceStartTime()
Returns:
Timestamp of CouchDBs start time (ms)

getPurgeSeq

public int getPurgeSeq()
Returns:
Number of purge operations

getUpdateSeq

public long getUpdateSeq()
Returns:
Current number of updates to the database

getUpdateSeqAsString

public String getUpdateSeqAsString()
Cloudant uses generated strings for update sequence.

Returns:

isUpdateSeqNumeric

public boolean isUpdateSeqNumeric()
Returns:
false if db is an Cloudant instance.

setUnknown

public void setUnknown(String key,
                       Object value)

getUnknownFields

public Map<String,Object> getUnknownFields()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.