org.exoplatform.services.jcr.aws.storage.value.s3
Class SimpleS3IOChannel

java.lang.Object
  extended by org.exoplatform.services.jcr.aws.storage.value.s3.S3IOChannel
      extended by org.exoplatform.services.jcr.aws.storage.value.s3.SimpleS3IOChannel
All Implemented Interfaces:
ValueIOChannel

public class SimpleS3IOChannel
extends S3IOChannel

Version:
$Id: SimpleS3IOChannel.java 35185 2009-08-07 14:15:56Z pnedonosko $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.aws.storage.value.s3.S3IOChannel
awsAccessKey, awsSecretAccessKey, bucket, cleaner, log, s3SwapDirectory, storageId
 
Constructor Summary
SimpleS3IOChannel(java.lang.String bucket, java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.io.File s3SwapDirectory, FileCleaner cleaner, java.lang.String storageId)
          SimpleS3IOChannel constructor.
 
Method Summary
protected  java.lang.String getFile(java.lang.String propertyId, int orderNumber)
          creates file name by propertyId and order number
protected  java.lang.String[] getFiles(java.lang.String propertyId)
          creates file names list by propertyId
 
Methods inherited from class org.exoplatform.services.jcr.aws.storage.value.s3.S3IOChannel
close, delete, getStorageId, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleS3IOChannel

public SimpleS3IOChannel(java.lang.String bucket,
                         java.lang.String awsAccessKey,
                         java.lang.String awsSecretAccessKey,
                         java.io.File s3SwapDirectory,
                         FileCleaner cleaner,
                         java.lang.String storageId)
SimpleS3IOChannel constructor.

Parameters:
bucket - S3 bucket name
awsAccessKey - AccessKey
awsSecretAccessKey - SecretAccessKey
s3SwapDirectory - SwapDirectory
cleaner - FileCleaner
storageId - JCR storage ID.
Method Detail

getFile

protected java.lang.String getFile(java.lang.String propertyId,
                                   int orderNumber)
creates file name by propertyId and order number

Specified by:
getFile in class S3IOChannel
Returns:
file name

getFiles

protected java.lang.String[] getFiles(java.lang.String propertyId)
creates file names list by propertyId

Specified by:
getFiles in class S3IOChannel
Returns:
array of file names


Copyright © 2012 eXo Platform SAS. All Rights Reserved.