HandleHeap
public
final
class
HandleHeap
extends ChunkHandler
| java.lang.Object | |||
| ↳ | com.android.tradefed.device.server.jdwp.JdwpInterceptor | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.HandleHeap | ||
Gérer les mises à jour de l'état du tas.
Résumé
Constantes | |
|---|---|
int |
HPIF_WHEN_EVERY_GC
|
int |
HPIF_WHEN_NEVER
|
int |
HPIF_WHEN_NEXT_GC
|
int |
HPIF_WHEN_NOW
|
int |
WHAT_MERGE
|
int |
WHAT_OBJ
|
int |
WHEN_DISABLE
|
int |
WHEN_GC
|
Champs | |
|---|---|
public
static
final
int |
CHUNK_HPDS
|
public
static
final
int |
CHUNK_HPDU
|
public
static
final
int |
CHUNK_HPEN
|
public
static
final
int |
CHUNK_HPGC
|
public
static
final
int |
CHUNK_HPIF
|
public
static
final
int |
CHUNK_HPSG
|
public
static
final
int |
CHUNK_HPST
|
public
static
final
int |
CHUNK_REAE
|
public
static
final
int |
CHUNK_REAL
|
public
static
final
int |
CHUNK_REAQ
|
Méthodes publiques | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Le client est parti. |
void
|
clientReady(ClientImpl client)
Le client est prêt. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Point d'entrée du gestionnaire de blocs. |
static
void
|
register(MonitorThread mt)
Enregistrez les paquets que vous prévoyez de recevoir du client. |
static
void
|
sendHPDS(ClientImpl client)
Envoie une requête HPDS au client. |
static
void
|
sendHPDU(ClientImpl client, String fileName)
Envoie une requête HPDU au client. |
static
void
|
sendHPGC(ClientImpl client)
Envoie une requête HPGC au client. |
static
void
|
sendHPIF(ClientImpl client, int when)
Envoyez une requête HPIF (HeaP InFo) au client. |
static
void
|
sendHPSG(ClientImpl client, int when, int what)
Envoie une requête HPSG (HeaP SeGment) au client. |
static
void
|
sendREAE(ClientImpl client, boolean enable)
Envoie une requête REAE (REcent Allocation Enable, activation de l'allocation récente) au client. |
static
void
|
sendREAL(ClientImpl client)
Envoie une requête REAL (REcent ALlocation) au client. |
static
void
|
sendREAQ(ClientImpl client)
Envoie une requête REAQ (REcent Allocation Query) au client. |
Constantes
HPIF_WHEN_EVERY_GC
public static final int HPIF_WHEN_EVERY_GC
Valeur constante : 3 (0x00000003)
HPIF_WHEN_NEVER
public static final int HPIF_WHEN_NEVER
Valeur constante : 0 (0x00000000)
HPIF_WHEN_NEXT_GC
public static final int HPIF_WHEN_NEXT_GC
Valeur constante : 2 (0x00000002)
HPIF_WHEN_NOW
public static final int HPIF_WHEN_NOW
Valeur constante : 1 (0x00000001)
WHAT_MERGE
public static final int WHAT_MERGE
Valeur constante : 0 (0x00000000)
WHAT_OBJ
public static final int WHAT_OBJ
Valeur constante : 1 (0x00000001)
WHEN_DISABLE
public static final int WHEN_DISABLE
Valeur constante : 0 (0x00000000)
WHEN_GC
public static final int WHEN_GC
Valeur constante : 1 (0x00000001)
Champs
CHUNK_HPDS
public static final int CHUNK_HPDS
CHUNK_HPDU
public static final int CHUNK_HPDU
CHUNK_HPEN
public static final int CHUNK_HPEN
CHUNK_HPGC
public static final int CHUNK_HPGC
CHUNK_HPIF
public static final int CHUNK_HPIF
CHUNK_HPSG
public static final int CHUNK_HPSG
CHUNK_HPST
public static final int CHUNK_HPST
CHUNK_REAE
public static final int CHUNK_REAE
CHUNK_REAL
public static final int CHUNK_REAL
CHUNK_REAQ
public static final int CHUNK_REAQ
Méthodes publiques
clientDisconnected
public void clientDisconnected (ClientImpl client)
Le client est parti.
| Paramètres | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Le client est prêt.
| Paramètres | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Point d'entrée du gestionnaire de blocs.
| Paramètres | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
s'inscrire
public static void register (MonitorThread mt)
Enregistrez les paquets que vous prévoyez de recevoir du client.
| Paramètres | |
|---|---|
mt |
MonitorThread |
sendHPDS
public static void sendHPDS (ClientImpl client)
Envoie une requête HPDS au client.
Nous recevrons une réponse HPDS une fois le vidage du tas terminé. En cas d'échec, nous obtenons une réponse d'échec générique.
Cette méthode est plus coûteuse pour l'appareil que HPDU, car l'intégralité du vidage du tas est conservée dans la RAM au lieu d'être mise en file d'attente dans un fichier temporaire. En revanche, l'autorisation d'écriture sur /sdcard n'est pas requise.
| Paramètres | |
|---|---|
client |
ClientImpl |
sendHPDU
public static void sendHPDU (ClientImpl client, String fileName)
Envoie une requête HPDU au client.
Nous recevrons une réponse HPDU une fois le vidage du tas terminé. En cas d'échec, nous obtenons une réponse d'échec générique.
| Paramètres | |
|---|---|
client |
ClientImpl |
fileName |
String : nom du fichier de sortie (sur l'appareil) |
sendHPGC
public static void sendHPGC (ClientImpl client)
Envoie une requête HPGC au client.
| Paramètres | |
|---|---|
client |
ClientImpl |
sendHPIF
public static void sendHPIF (ClientImpl client, int when)
Envoyez une requête HPIF (HeaP InFo) au client.
| Paramètres | |
|---|---|
client |
ClientImpl |
when |
int |
sendHPSG
public static void sendHPSG (ClientImpl client, int when, int what)
Envoie une requête HPSG (HeaP SeGment) au client.
| Paramètres | |
|---|---|
client |
ClientImpl |
when |
int |
what |
int |
sendREAE
public static void sendREAE (ClientImpl client, boolean enable)
Envoie une requête REAE (REcent Allocation Enable, activation de l'allocation récente) au client.
| Paramètres | |
|---|---|
client |
ClientImpl |
enable |
boolean |
sendREAL
public static void sendREAL (ClientImpl client)
Envoie une requête REAL (REcent ALlocation) au client.
| Paramètres | |
|---|---|
client |
ClientImpl |
sendREAQ
public static void sendREAQ (ClientImpl client)
Envoie une requête REAQ (REcent Allocation Query) au client.
| Paramètres | |
|---|---|
client |
ClientImpl |