|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intel.cosbench.api.storage.NoneStorage
com.intel.cosbench.api.amplistor.AmpliStorage
public class AmpliStorage
The amplistor implementation for Storage API.
| Field Summary |
|---|
| Fields inherited from class com.intel.cosbench.api.storage.NoneStorage |
|---|
API_TYPE |
| Constructor Summary | |
|---|---|
AmpliStorage()
|
|
| Method Summary | |
|---|---|
void |
createContainer(java.lang.String container,
Config config)
create a container. |
void |
createObject(java.lang.String container,
java.lang.String object,
java.io.InputStream data,
long length,
Config config)
upload an object into a container. |
void |
deleteContainer(java.lang.String container,
Config config)
delete a container. |
void |
deleteObject(java.lang.String container,
java.lang.String object,
Config config)
delete an object. |
void |
dispose()
clean up Storage API. |
java.io.InputStream |
getObject(java.lang.String container,
java.lang.String object,
Config config)
download an object from a container. |
void |
init(Config config,
Logger logger)
initialize Storage API with parameters contained in config, the parameter list depends on storage type. |
void |
setAuthContext(AuthContext info)
associate authentication context with Storage API for further storage operations. |
| Methods inherited from class com.intel.cosbench.api.storage.NoneStorage |
|---|
getParms |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AmpliStorage()
| Method Detail |
|---|
public void init(Config config,
Logger logger)
StorageAPI
init in interface StorageAPIinit in class NoneStorageconfig - - one instance from “com.intel.cosbench.config.Config” class, which includes parameters for authentication.logger - - one instance from “com.intel.cosbench.log.Logger” class, which delivers logging capabilities to Auth API.public void setAuthContext(AuthContext info)
StorageAPI
setAuthContext in interface StorageAPIsetAuthContext in class NoneStorageinfo - - one AuthContext instance, normally, it's the return from login() in Auth API.public void dispose()
StorageAPI
dispose in interface StorageAPIdispose in class NoneStorage
public java.io.InputStream getObject(java.lang.String container,
java.lang.String object,
Config config)
StorageAPI
getObject in interface StorageAPIgetObject in class NoneStoragecontainer - - the name of a container.object - - the name of an object to be downloaded.config - - the configuration used for this operation.
public void createContainer(java.lang.String container,
Config config)
StorageAPI
createContainer in interface StorageAPIcreateContainer in class NoneStoragecontainer - - the name of a container.config - - the configuration used for this operation.
public void createObject(java.lang.String container,
java.lang.String object,
java.io.InputStream data,
long length,
Config config)
StorageAPI
createObject in interface StorageAPIcreateObject in class NoneStoragecontainer - - the name of a container.object - - the name of an object to be uploaded.data - - the inputStream of the object content.length - - the length of object content.config - - the configuration used for this operation.
public void deleteContainer(java.lang.String container,
Config config)
StorageAPI
deleteContainer in interface StorageAPIdeleteContainer in class NoneStoragecontainer - - the name of a container to be deleted.config - - the configuration used for this operation.
public void deleteObject(java.lang.String container,
java.lang.String object,
Config config)
StorageAPI
deleteObject in interface StorageAPIdeleteObject in class NoneStoragecontainer - - the name of a container.object - - the name of an object to be deleted.config - - the configuration used for this operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||