public class DBInstanceImpl extends Object implements DBInstance
Constructor and Description |
---|
DBInstanceImpl(MetadataStore metadataStore,
Instance instanceMeta) |
Modifier and Type | Method and Description |
---|---|
Bag |
getBag(String bagName)
Retrieves the bag metadata for a bag with given name in this instance
|
List<Bag> |
getBags()
Retrieves the list of bags for this instance
|
String |
getInstanceId()
Gets the identifier of this instance
|
String |
getPath()
The storage path used for this instance
|
void |
removeBag(String bagName)
Removes the requested bag from this instance, will remove the bag with all data and its
indexes
|
public DBInstanceImpl(MetadataStore metadataStore, Instance instanceMeta)
public String getInstanceId()
Instance
getInstanceId
in interface Instance
public List<Bag> getBags() throws JasDBStorageException
DBInstance
getBags
in interface DBInstance
JasDBStorageException
- If unable to retrieve the list of bags for this instancepublic Bag getBag(String bagName) throws JasDBStorageException
DBInstance
getBag
in interface DBInstance
bagName
- The name of the bag to retrieve metadata forJasDBStorageException
- If unable to load the bag metadatapublic void removeBag(String bagName) throws JasDBStorageException
DBInstance
removeBag
in interface DBInstance
bagName
- THe name of the bag to remove from this instanceJasDBStorageException
- If unable to remove the bagCopyright © 2015. All rights reserved.