APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

public Class TargetVM

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
java.io.IOException, java.util.ArrayList, .Collections, .HashMap, .List, .Map, com.sun.jdi.VMDisconnectedException, .VirtualMachine, com.sun.jdi.connect.spi.Connection, com.sun.jdi.event.EventQueue, .EventSet

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private Connection
private TargetVM.EventController
private List<EventQueue>
private boolean
private static final int
private Thread
private volatile boolean
private static final int
private VirtualMachineImpl
private Map<String, Packet>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private synchronized void
controlEventFlow(int maxQueueSize)

private void
dumpPacket(Packet packet, boolean sending)

private TargetVM.EventController
protected void
protected void
pack-priv void
private void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

pack-priv void
send(Packet packet)

pack-priv void
pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
private Connection connection
eventControllerback to summary
private TargetVM.EventController eventController
eventQueuesback to summary
private List<EventQueue> eventQueues
eventsHeldback to summary
private boolean eventsHeld
OVERLOADED_QUEUEback to summary
private static final int OVERLOADED_QUEUE
readerThreadback to summary
private Thread readerThread
shouldListenback to summary
private volatile boolean shouldListen
UNDERLOADED_QUEUEback to summary
private static final int UNDERLOADED_QUEUE
vmback to summary
private VirtualMachineImpl vm
waitingQueueback to summary
private Map<String, Packet> waitingQueue

Constructor Detail

TargetVMback to summary
pack-priv TargetVM(VirtualMachineImpl vm, Connection connection)

Method Detail

addEventQueueback to summary
pack-priv void addEventQueue(EventQueueImpl queue)
controlEventFlowback to summary
private synchronized void controlEventFlow(int maxQueueSize)
dumpPacketback to summary
private void dumpPacket(Packet packet, boolean sending)
eventControllerback to summary
private TargetVM.EventController eventController()
handleEventCmdSetback to summary
protected void handleEventCmdSet(Packet p)
handleVMCommandback to summary
protected void handleVMCommand(Packet p)
notifyDequeueEventSetback to summary
pack-priv void notifyDequeueEventSet()
queueEventSetback to summary
private void queueEventSet(EventSet eventSet)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

sendback to summary
pack-priv void send(Packet packet)
startback to summary
pack-priv void start()
stopListeningback to summary
pack-priv void stopListening()
waitForReplyback to summary
pack-priv void waitForReply(Packet packet)
com.sun.tools.jdi back to summary

private Class TargetVM.EventController

extends Thread
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
hold()

pack-priv synchronized void
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Field Detail

controlRequestback to summary
pack-priv int controlRequest

Constructor Detail

EventControllerback to summary
pack-priv EventController()

Method Detail

holdback to summary
pack-priv synchronized void hold()
releaseback to summary
pack-priv synchronized void release()
runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.