|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamStatus
Provides information about the status of a stream.
Field Summary | |
---|---|
static java.lang.String[] |
STR_STATUS
Maps a stream status code into a String value |
static int |
STR_STATUS_CREATED
Status code indicating that stream has been created. |
static int |
STR_STATUS_ERROR
Status code indicating that current stream has encountered an error. |
static int |
STR_STATUS_TRANSFER_COMPLETE
Status code indicating that current stream has completed the transfer process. |
static int |
STR_STATUS_TRANSFERRING
Status code indicating that stream is currently transferring data. |
static int |
STR_STATUS_UNKNOWN
Status code indicating that current stream state is unknown/undefined. |
Method Summary | |
---|---|
long |
getBytesTransferred()
Returns the number of bytes currently transferred by/for the stream. |
long |
getSegmentsDiscarded()
Returns the number of segments discarded by the stream up to the current point in time. |
long |
getSegmentsTransferred()
Returns the number of segments currently transferred by/for the stream. |
java.lang.String |
getStreamId()
Returns the identifier assigned to the stream instance. |
int |
getStreamStatus()
Returns current state of stream. |
long |
getTransferEnd()
Returns the time that the current stream transfer ended. |
long |
getTransferStart()
Returns the time that the current stream transfer started. |
long |
getTransferTime()
Returns the total transfer time (from start to finish). |
Field Detail |
---|
static final int STR_STATUS_UNKNOWN
static final int STR_STATUS_CREATED
static final int STR_STATUS_TRANSFERRING
static final int STR_STATUS_TRANSFER_COMPLETE
static final int STR_STATUS_ERROR
static final java.lang.String[] STR_STATUS
Method Detail |
---|
long getBytesTransferred()
long getSegmentsTransferred()
long getTransferStart()
long getTransferEnd()
long getTransferTime()
int getStreamStatus()
StreamStatus
,
including:
STR_STATUS_UNKNOWN
STR_STATUS_CREATED
STR_STATUS_TRANSFERRING
STR_STATUS_TRANSFER_COMPLETE
STR_STATUS_ERROR
long getSegmentsDiscarded()
java.lang.String getStreamId()
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |