public final class ResponseBuilders
extends java.lang.Object
Constructor and Description |
---|
ResponseBuilders() |
Modifier and Type | Method and Description |
---|---|
static AllocateJobChunkSpectraS3Response |
allocated(Objects chunk) |
static GetJobChunksReadyForClientProcessingSpectraS3Response |
availableJobChunks(MasterObjectList masterObjectList) |
static JobNode |
basicNode(java.util.UUID nodeId,
java.lang.String endpoint) |
static GetBulkJobSpectraS3Response |
bulkGetResponse(MasterObjectList masterObjectList) |
static PutBulkJobSpectraS3Response |
bulkPutResponse(MasterObjectList masterObjectList) |
static java.nio.channels.SeekableByteChannel |
channelWithContents(java.lang.String contents) |
static Objects |
chunk(int chunkNumber,
java.util.UUID chunkId,
java.util.UUID nodeId,
BulkObject... chunkList) |
static <any> |
getObjectAnswer(java.lang.String result) |
static HeadBucketResponse |
headBucket(HeadBucketResponse.Status status) |
static MasterObjectList |
jobResponse(java.util.UUID jobId,
java.lang.String bucketName,
JobRequestType requestType,
long originalSizeInBytes,
long cachedSizeInBytes,
long completedSizeInBytes,
JobChunkClientProcessingOrderGuarantee chunkClientProcessingOrderGuarantee,
Priority priority,
java.lang.String startDate,
java.util.UUID userId,
java.lang.String userName,
java.util.List<JobNode> nodes,
java.util.List<Objects> objects) |
static ModifyJobSpectraS3Response |
modifyJobResponse(MasterObjectList masterObjectList) |
static JobNode |
node(java.util.UUID nodeId,
java.lang.String endpoint,
int httpPort,
int httpsPort) |
static BulkObject |
object(java.lang.String name,
long offset,
long length,
boolean inCache) |
static AllocateJobChunkSpectraS3Response |
retryAllocateLater(int retryAfterInSeconds) |
static GetJobChunksReadyForClientProcessingSpectraS3Response |
retryGetAvailableAfter(int retryAfterInSeconds) |
public static GetBulkJobSpectraS3Response bulkGetResponse(MasterObjectList masterObjectList)
public static PutBulkJobSpectraS3Response bulkPutResponse(MasterObjectList masterObjectList)
public static ModifyJobSpectraS3Response modifyJobResponse(MasterObjectList masterObjectList)
public static GetJobChunksReadyForClientProcessingSpectraS3Response availableJobChunks(MasterObjectList masterObjectList)
public static GetJobChunksReadyForClientProcessingSpectraS3Response retryGetAvailableAfter(int retryAfterInSeconds)
public static AllocateJobChunkSpectraS3Response allocated(Objects chunk)
public static AllocateJobChunkSpectraS3Response retryAllocateLater(int retryAfterInSeconds)
public static MasterObjectList jobResponse(java.util.UUID jobId, java.lang.String bucketName, JobRequestType requestType, long originalSizeInBytes, long cachedSizeInBytes, long completedSizeInBytes, JobChunkClientProcessingOrderGuarantee chunkClientProcessingOrderGuarantee, Priority priority, java.lang.String startDate, java.util.UUID userId, java.lang.String userName, java.util.List<JobNode> nodes, java.util.List<Objects> objects) throws java.text.ParseException
java.text.ParseException
public static JobNode basicNode(java.util.UUID nodeId, java.lang.String endpoint)
public static JobNode node(java.util.UUID nodeId, java.lang.String endpoint, int httpPort, int httpsPort)
public static Objects chunk(int chunkNumber, java.util.UUID chunkId, java.util.UUID nodeId, BulkObject... chunkList)
public static BulkObject object(java.lang.String name, long offset, long length, boolean inCache)
public static <any> getObjectAnswer(java.lang.String result)
public static java.nio.channels.SeekableByteChannel channelWithContents(java.lang.String contents)
public static HeadBucketResponse headBucket(HeadBucketResponse.Status status)