Package org.cdlib.mrt.s3.tools
Class S3Reader
java.lang.Object
org.cdlib.mrt.s3.tools.S3Reader
- Author:
- replic
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected byte[]protected ByteBufferprotected static final booleanprotected longprotected Stringprotected static final org.apache.logging.log4j.Loggerprotected intprotected static final Stringprotected longprotected Stringprotected longprotected booleanprotected static final Stringprotected intprotected longprotected intprotected longprotected static intprotected intprotected CloudStoreInfprotected longprotected long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3Reader(CloudStoreInf service, String bucket, String key, Integer maxsize) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic org.cdlib.mrt.utility.MessageDigestTypegetAlgorithm(String algorithmS) longgetKey()intlongintintlongstatic S3ReadergetS3Reader(CloudStoreInf service, String bucket, String key, Integer maxsize) intprotected InputStreamgetStream(long start, long stop, int retry) booleanisMore()byte[]nextRead()long
-
Field Details
-
log4j
protected static final org.apache.logging.log4j.Logger log4j -
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static final boolean DEBUG- See Also:
-
RETRY
protected static int RETRY -
readBufSize
protected int readBufSize -
maxBufSize
protected int maxBufSize -
nextCnt
protected int nextCnt -
segCnt
protected int segCnt -
readTimeMs
protected long readTimeMs -
inputSize
protected long inputSize -
service
-
bucket
-
key
-
metaObjectSize
protected long metaObjectSize -
physicalObjectSize
protected long physicalObjectSize -
metaSha256
-
metaTimeMs
protected long metaTimeMs -
buf
protected byte[] buf -
byteBuf
-
start
protected long start -
stop
protected long stop -
more
protected boolean more
-
-
Constructor Details
-
S3Reader
protected S3Reader(CloudStoreInf service, String bucket, String key, Integer maxsize) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
getS3Reader
public static S3Reader getS3Reader(CloudStoreInf service, String bucket, String key, Integer maxsize) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
dump
-
startRead
public long startRead() -
nextRead
public byte[] nextRead() throws org.cdlib.mrt.utility.TException- Throws:
org.cdlib.mrt.utility.TException
-
getStream
protected InputStream getStream(long start, long stop, int retry) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getMetaObjectSize
-
getMetaSha256
-
getSegCnt
public int getSegCnt() -
getReadBufSize
public int getReadBufSize() -
getReadTimeMs
public long getReadTimeMs() -
getBucket
-
getKey
-
getAlgorithm
-
getInputSize
public long getInputSize() -
isMore
public boolean isMore() -
getMaxBufSize
public int getMaxBufSize() -
getMetaTimeMs
public long getMetaTimeMs() -
getNextCnt
public int getNextCnt()
-