|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuotaService
The QuotaService
provides a way for user code to get access
to some server-internal metrics.
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()
Measures the duration that the current request has spent so far in API calls, such as making datastore requests or sending out mail. |
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.long getApiTimeInMegaCycles()
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.
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 |