|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QuotaService
The QuotaService provides measurement of API and CPU usage
during requests.
| Nested Class Summary | |
|---|---|
static class |
QuotaService.DataType
Represents all types of data that a QuotaService might be able to provide. |
| Method Summary | |
|---|---|
long |
convertCpuSecondsToMegacycles(double cpuSeconds)
Expresses a value in megaCycles as its approximate equivalent of CPU seconds on a theoretical 1.2 GHz CPU. |
double |
convertMegacyclesToCpuSeconds(long megaCycles)
Expresses a value in megaCycles as its approximate equivalent of CPU seconds on a theoretical 1.2 GHz CPU. |
long |
getApiTimeInMegaCycles()
Deprecated. This value is no longer meaningful. |
long |
getCpuTimeInMegaCycles()
Measures the duration that the current request has spent so far processing the request within the App Engine sandbox. |
boolean |
supports(QuotaService.DataType type)
Tests if the QuotaService can provide a certain kind of data at this point in time. |
| Method Detail |
|---|
boolean supports(QuotaService.DataType type)
type - the type of data in question.
java.lang.NullPointerException - if a null argument is passed into
the method.@Deprecated long getApiTimeInMegaCycles()
long getCpuTimeInMegaCycles()
The unit the duration is measured is Megacycles. If all instructions were to be executed sequentially on a standard 1.2 GHz 64-bit x86 CPU, 1200 megacycles would equate to one second physical time elapsed.
double convertMegacyclesToCpuSeconds(long megaCycles)
megaCycles - the value, in megacycles, to convert.
long convertCpuSecondsToMegacycles(double cpuSeconds)
cpuSeconds - the value, in cpu seconds, to convert.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||