IRunUtil.IRunnableResult

public static interface IRunUtil.IRunnableResult

com.android.tradefed.util.IRunUtil.IRunnableResult


불리언 상태를 반환하는 작업을 비동기식으로 실행하기 위한 인터페이스입니다.

요약

공개 메서드

abstract void cancel()

작업을 취소합니다.

default boolean checkOutputMonitor(Long idleOutputTimeout)

현재 실행 중인 작업이 마지막 확인 이후 진행되었는지 확인합니다.

default getCommand()

실행 파일과 연결된 명령어를 반환합니다.

default CommandResult getResult()

명령어와 연결된 CommandResult를 반환합니다.

abstract boolean run()

작업을 실행합니다.

공개 메서드

취소

public abstract void cancel ()

작업을 취소합니다.

checkOutputMonitor

public boolean checkOutputMonitor (Long idleOutputTimeout)

현재 실행 중인 작업이 마지막 확인 이후 진행되었는지 확인합니다.

매개변수
idleOutputTimeout Long: 진행률이 관찰되지 않은 상태에서 유휴 상태로 지낸 시간(ms)으로, 이 시간 후에 진행률이 없다고 가정합니다.

반환 값
boolean 진행률이 감지되면 true이고 그렇지 않으면 false입니다.

getCommand

public  getCommand ()

실행 파일과 연결된 명령어를 반환합니다.

반환 값

getResult

public CommandResult getResult ()

명령어와 연결된 CommandResult를 반환합니다.

반환 값
CommandResult

실행

public abstract boolean run ()

작업을 실행합니다.

반환 값
boolean 작업이 성공적으로 실행된 경우 true, 그렇지 않으면 false

생성 값
Exception 작업이 비정상적으로 종료된 경우