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()
InstancegetInstanceId in interface Instancepublic List<Bag> getBags() throws JasDBStorageException
DBInstancegetBags in interface DBInstanceJasDBStorageException - If unable to retrieve the list of bags for this instancepublic Bag getBag(String bagName) throws JasDBStorageException
DBInstancegetBag in interface DBInstancebagName - The name of the bag to retrieve metadata forJasDBStorageException - If unable to load the bag metadatapublic void removeBag(String bagName) throws JasDBStorageException
DBInstanceremoveBag in interface DBInstancebagName - THe name of the bag to remove from this instanceJasDBStorageException - If unable to remove the bagCopyright © 2015. All rights reserved.