MonitorThread
public
final
class
MonitorThread
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.MonitorThread |
열려 있는 연결을 모니터링합니다.
요약
공개 메서드 | |
|---|---|
void
|
addClient(ClientImpl client)
모니터링하는 항목 목록에 새 클라이언트를 추가합니다. |
static
MonitorThread
|
createInstance()
클라이언트 모니터 스레드의 싱글톤 인스턴스를 만들고 반환합니다. |
void
|
dropClient(ClientImpl client, boolean notify)
모니터에서 클라이언트를 삭제합니다. |
void
|
dropClients(
모니터에서 제공된 클라이언트 목록을 삭제합니다. |
DdmJdwpExtension
|
getDdmExtension()
|
static
MonitorThread
|
getInstance()
클라이언트 모니터 스레드의 싱글톤 인스턴스를 가져옵니다. |
boolean
|
getRetryOnBadHandshake()
잘못된 JDWP 핸드셰이크가 다시 수신되는 경우 클라이언트 연결을 재시도하려면 'true'를 반환하고, 잘못된 것으로 표시하고 그대로 두려면 'false'를 반환합니다. |
void
|
quit()
스레드에 중지하라고 말합니다. |
void
|
registerChunkHandler(int type, ChunkHandler handler)
'handler'를 'type' 유형의 핸들러로 등록합니다. |
void
|
run()
클라이언트와 디버거의 활동을 확인합니다. |
공개 메서드
addClient
public void addClient (ClientImpl client)
모니터링하는 항목 목록에 새 클라이언트를 추가합니다. 또한 선택 목록에 클라이언트의 채널과 클라이언트의 디버거 리스너를 추가합니다. 'alreadyOpen'과 클라이언트 생성 간의 경합을 방지하기 위해 한 스레드(VMWatcherThread)에서만 호출해야 합니다.
| 매개변수 | |
|---|---|
client |
ClientImpl |
createInstance
public static MonitorThread createInstance ()
클라이언트 모니터 스레드의 싱글톤 인스턴스를 만들고 반환합니다.
| 반환 값 | |
|---|---|
MonitorThread |
|
dropClient
public void dropClient (ClientImpl client, boolean notify)
모니터에서 클라이언트를 삭제합니다.
이렇게 하면 client를 실행하는 IDevice의 ClientImpl 목록이 잠깁니다.
dropClients
public void dropClients (clients, boolean notify)
모니터에서 제공된 클라이언트 목록을 삭제합니다. 이렇게 하면 각 클라이언트를 실행하는 IDevice의 ClientImpl 목록이 잠깁니다.
| 매개변수 | |
|---|---|
clients |
|
notify |
boolean |
getInstance
public static MonitorThread getInstance ()
클라이언트 모니터 스레드의 싱글톤 인스턴스를 가져옵니다.
| 반환 값 | |
|---|---|
MonitorThread |
|
getRetryOnBadHandshake
public boolean getRetryOnBadHandshake ()
잘못된 JDWP 핸드셰이크가 다시 수신되는 경우 클라이언트 연결을 재시도하려면 'true'를 반환하고, 잘못된 것으로 표시하고 그대로 두려면 'false'를 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
종료
public void quit ()
스레드에 중지하라고 말합니다. UI 스레드에서 호출됩니다.
registerChunkHandler
public void registerChunkHandler (int type,
ChunkHandler handler)'handler'를 'type' 유형의 핸들러로 등록합니다.
| 매개변수 | |
|---|---|
type |
int |
handler |
ChunkHandler |
실행
public void run ()
클라이언트와 디버거의 활동을 확인합니다.