|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.aws.storage.value.s3.S3IOChannel
public abstract class S3IOChannel
| Field Summary | |
|---|---|
protected java.lang.String |
awsAccessKey
AWS access key id. |
protected java.lang.String |
awsSecretAccessKey
AWS access secret key. |
protected java.lang.String |
bucket
Bucket name. |
protected FileCleaner |
cleaner
|
protected static org.apache.commons.logging.Log |
log
|
protected java.io.File |
s3SwapDirectory
|
protected java.lang.String |
storageId
|
| Constructor Summary | |
|---|---|
S3IOChannel(java.lang.String bucket,
java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey,
java.io.File s3SwapDirectory,
FileCleaner cleaner,
java.lang.String storageId)
New S3 channel |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
delete(java.lang.String propertyId)
|
protected abstract java.lang.String |
getFile(java.lang.String propertyId,
int orderNumber)
creates file name by propertyId and order number |
protected abstract java.lang.String[] |
getFiles(java.lang.String propertyId)
creates file names list by propertyId |
java.lang.String |
getStorageId()
|
ValueData |
read(java.lang.String propertyId,
int orderNumber,
int maxBufferSize)
|
void |
write(java.lang.String propertyId,
ValueData value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected final java.lang.String bucket
protected final java.lang.String awsAccessKey
protected final java.lang.String awsSecretAccessKey
protected final java.io.File s3SwapDirectory
protected final FileCleaner cleaner
protected final java.lang.String storageId
| Constructor Detail |
|---|
public S3IOChannel(java.lang.String bucket,
java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey,
java.io.File s3SwapDirectory,
FileCleaner cleaner,
java.lang.String storageId)
bucket - the Bucket nameaws_access_key - the S3 access keyaws_secret_access_key - the S3 access secretkeycleaner - file cleanre| Method Detail |
|---|
public boolean delete(java.lang.String propertyId)
throws java.io.IOException
delete in interface ValueIOChanneljava.io.IOExceptionpublic void close()
close in interface ValueIOChannel
public ValueData read(java.lang.String propertyId,
int orderNumber,
int maxBufferSize)
throws java.io.IOException
read in interface ValueIOChanneljava.io.IOException
public void write(java.lang.String propertyId,
ValueData value)
throws java.io.IOException
write in interface ValueIOChanneljava.io.IOException
protected abstract java.lang.String getFile(java.lang.String propertyId,
int orderNumber)
propertyId - orderNumber -
protected abstract java.lang.String[] getFiles(java.lang.String propertyId)
propertyId -
public java.lang.String getStorageId()
getStorageId in interface ValueIOChannel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||