Package loci.common.services
Class S3ClientServiceImpl
- java.lang.Object
-
- loci.common.services.AbstractService
-
- loci.common.services.S3ClientServiceImpl
-
- All Implemented Interfaces:
S3ClientService,Service
@Deprecated public class S3ClientServiceImpl extends AbstractService implements S3ClientService
Deprecated.The S3 implementations and services will be removed from the ome-common library in version 7.0.0An S3 client
-
-
Constructor Summary
Constructors Constructor Description S3ClientServiceImpl()Deprecated.Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanbucketExists(String bucket)Deprecated.Check whether a bucket existsInputStreamgetObject(String bucket, String object, long offset)Deprecated.Read an objectvoidgetObject(String bucket, String object, String filename)Deprecated.Download an objectvoidinitialize(String server, int port, String accessKey, String secretKey, String appName, String appVersion)Deprecated.Initialise the S3 clientS3ClientStatstatObject(String bucket, String object)Deprecated.Stat the object-
Methods inherited from class loci.common.services.AbstractService
checkClassDependency
-
-
-
-
Method Detail
-
initialize
public void initialize(String server, int port, String accessKey, String secretKey, String appName, String appVersion) throws S3ClientServiceException
Deprecated.Description copied from interface:S3ClientServiceInitialise the S3 client- Specified by:
initializein interfaceS3ClientService- Parameters:
server- servernameport- portaccessKey- access keysecretKey- secret keyappName- user agent application nameappVersion- user agent application version- Throws:
S3ClientServiceException- if an S3 error occurred
-
bucketExists
public boolean bucketExists(String bucket) throws S3ClientServiceException, IOException
Deprecated.Description copied from interface:S3ClientServiceCheck whether a bucket exists- Specified by:
bucketExistsin interfaceS3ClientService- Parameters:
bucket- Bucket name- Returns:
- true if bucket exists
- Throws:
S3ClientServiceException- if an S3 error occurredIOException- if an S3 error occurred
-
statObject
public S3ClientStat statObject(String bucket, String object) throws S3ClientServiceException, IOException
Deprecated.Description copied from interface:S3ClientServiceStat the object- Specified by:
statObjectin interfaceS3ClientService- Parameters:
bucket- Bucket nameobject- Object path- Returns:
- S3ClientStat object
- Throws:
S3ClientServiceException- if an S3 error occurredIOException- if an S3 error occurred
-
getObject
public InputStream getObject(String bucket, String object, long offset) throws S3ClientServiceException, IOException
Deprecated.Description copied from interface:S3ClientServiceRead an object- Specified by:
getObjectin interfaceS3ClientService- Parameters:
bucket- Bucket nameobject- Object pathoffset- Start reading at this offset- Returns:
- InputStream to the object
- Throws:
S3ClientServiceException- if an S3 error occurredIOException- if an S3 error occurred
-
getObject
public void getObject(String bucket, String object, String filename) throws S3ClientServiceException, IOException
Deprecated.Description copied from interface:S3ClientServiceDownload an object- Specified by:
getObjectin interfaceS3ClientService- Parameters:
bucket- Bucket nameobject- Object pathfilename- Destination file- Throws:
S3ClientServiceException- if an S3 error occurredIOException- if an S3 error occurred
-
-