Package com.netflix.kayenta.s3.storage
Class S3StorageService
java.lang.Object
com.netflix.kayenta.s3.storage.S3StorageService
- All Implemented Interfaces:
com.netflix.kayenta.storage.StorageService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey) voidensureBucketExists(String accountName) Check to see if the bucket exists, creating it if it is not there.listObjectKeys(String accountName, com.netflix.kayenta.storage.ObjectType objectType, List<String> applications, boolean skipIndex) <T> TloadObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey) booleanservicesAccount(String accountName) <T> voidstoreObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey, T obj, String filename, boolean isAnUpdate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.kayenta.storage.StorageService
listObjectKeys, storeObject
-
Field Details
-
MAX_RETRIES
public final int MAX_RETRIES- See Also:
-
RETRY_BACKOFF
public final long RETRY_BACKOFF- See Also:
-
-
Constructor Details
-
S3StorageService
public S3StorageService()
-
-
Method Details
-
servicesAccount
- Specified by:
servicesAccountin interfacecom.netflix.kayenta.storage.StorageService
-
ensureBucketExists
Check to see if the bucket exists, creating it if it is not there. -
loadObject
public <T> T loadObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey) throws IllegalArgumentException, com.netflix.spinnaker.kork.web.exceptions.NotFoundException - Specified by:
loadObjectin interfacecom.netflix.kayenta.storage.StorageService- Throws:
IllegalArgumentExceptioncom.netflix.spinnaker.kork.web.exceptions.NotFoundException
-
storeObject
public <T> void storeObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey, T obj, String filename, boolean isAnUpdate) - Specified by:
storeObjectin interfacecom.netflix.kayenta.storage.StorageService
-
deleteObject
public void deleteObject(String accountName, com.netflix.kayenta.storage.ObjectType objectType, String objectKey) - Specified by:
deleteObjectin interfacecom.netflix.kayenta.storage.StorageService
-
listObjectKeys
public List<Map<String,Object>> listObjectKeys(String accountName, com.netflix.kayenta.storage.ObjectType objectType, List<String> applications, boolean skipIndex) - Specified by:
listObjectKeysin interfacecom.netflix.kayenta.storage.StorageService
-