Class UploadStatistics
java.lang.Object
org.opencastproject.staticfiles.jmx.UploadStatistics
- All Implemented Interfaces:
UploadStatisticsMXBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long bytes) voidfailed()longGets the total number of uploaded bytes in the last fifteen minuteslongGets the total number of uploaded bytes in the last five minuteslongGets the total number of uploaded bytes in the last minuteintGets the number of failed upload operationsintGets the number of successful upload operationslongGets the total number of uploaded bytesvoid
-
Constructor Details
-
UploadStatistics
public UploadStatistics()
-
-
Method Details
-
getSuccessfulUploadOperations
public int getSuccessfulUploadOperations()Description copied from interface:UploadStatisticsMXBeanGets the number of successful upload operations- Specified by:
getSuccessfulUploadOperationsin interfaceUploadStatisticsMXBean- Returns:
- the number of upload operations
- See Also:
-
getFailedUploadOperations
public int getFailedUploadOperations()Description copied from interface:UploadStatisticsMXBeanGets the number of failed upload operations- Specified by:
getFailedUploadOperationsin interfaceUploadStatisticsMXBean- Returns:
- the number of upload operations
- See Also:
-
getTotalBytes
public long getTotalBytes()Description copied from interface:UploadStatisticsMXBeanGets the total number of uploaded bytes- Specified by:
getTotalBytesin interfaceUploadStatisticsMXBean- Returns:
- the number of bytes
- See Also:
-
getBytesInLastMinute
public long getBytesInLastMinute()Description copied from interface:UploadStatisticsMXBeanGets the total number of uploaded bytes in the last minute- Specified by:
getBytesInLastMinutein interfaceUploadStatisticsMXBean- Returns:
- the number of bytes
- See Also:
-
getBytesInLastFiveMinutes
public long getBytesInLastFiveMinutes()Description copied from interface:UploadStatisticsMXBeanGets the total number of uploaded bytes in the last five minutes- Specified by:
getBytesInLastFiveMinutesin interfaceUploadStatisticsMXBean- Returns:
- the number of bytes
- See Also:
-
getBytesInLastFifteenMinutes
public long getBytesInLastFifteenMinutes()Description copied from interface:UploadStatisticsMXBeanGets the total number of uploaded bytes in the last fifteen minutes- Specified by:
getBytesInLastFifteenMinutesin interfaceUploadStatisticsMXBean- Returns:
- the number of bytes
- See Also:
-
add
public void add(long bytes) -
successful
public void successful() -
failed
public void failed()
-