HostOptions

public class HostOptions
extends Object implements IHostOptions

java.lang.Object의 클래스
   ↳ com.android.tradefed.host.HostOptions 클래스의 정적 변수


호스팅 옵션 홀더 클래스 이 클래스는 호스트 전체 옵션을 저장하는 데 사용됩니다.

요약

공개 생성자

HostOptions()

공개 메서드

Integer getAvailablePermits(IHostOptions.PermitLimitType type)

지정된 유형의 이용 가능한 허가 수를 반환합니다.

Long getCacheSizeLimit()

로컬 파일 캐시의 최대 허용 크기(바이트)를 반환합니다.

Integer getConcurrentDownloadLimit()

허용되는 최대 동시 다운로드 수를 반환합니다.

Integer getConcurrentFlasherLimit()

허용할 동시 플래싱의 최대 개수를 반환합니다.

Integer getConcurrentVirtualDeviceStartupLimit()

허용되는 동시 가상 기기 시작의 최대 개수를 반환합니다.

File getDownloadCacheDir()

다운로드한 아티팩트를 저장하는 데 사용되는 경로를 반환합니다.

File getFastbootTmpDir()

빠른 부팅에서 임시 폴더로 사용해야 하는 경로를 반환합니다.

int getInUsePermits(IHostOptions.PermitLimitType type)

지정된 유형에 사용 중인 허가 수를 반환합니다.

getKnownGceDeviceIpPool()

특정 IP와 연결된 알려진 gce-device입니다.

getKnownPreconfigureVirtualDevicePool()

알려진 사전 구성된 가상 기기 풀입니다.

getKnownRemoteDeviceIpPool()

특정 IP와 연결된 알려진 원격 기기입니다.

getLabels()

호스트의 라벨을 가져옵니다.

String getNetworkInterface()

원격 테스트 기기에 연결하는 데 사용된 네트워크 인터페이스를 반환합니다.

getServiceAccountJsonKeyFiles()

서비스 계정 json 키 파일의 맵을 반환합니다.

long getTestPhaseTimeout()

지정된 테스트 단계 수준 제한 시간을 반환합니다.

boolean getUseZip64InPartialDownload()

부분 다운로드에 zip64 형식을 사용해야 하는지 확인합니다.

void initConcurrentLocks()

동시 잠금을 초기화합니다.

boolean isFastbootdEnable()

fastbootd 모드 지원의 사용 설정 여부를 반환합니다.

boolean isHostMetricReportingDisabled()

호스트 측정항목 보고를 사용 중지해야 하는지 여부를 반환합니다.

boolean isIncrementalFlashingEnabled()

증분 플래싱의 사용 여부를 반환합니다.

boolean isOptOutOfIncrementalFlashing()

호스트가 증분 플래싱을 선택 해제할지 여부를 반환합니다.

void returnPermit(IHostOptions.PermitLimitType type)

지정된 유형의 허가를 반환합니다.

boolean shouldFlashWithFuseZip()

퓨즈 마운트 기기 이미지 ZIP 파일로 플래시해야 하는지 여부를 반환합니다.

Boolean shouldUseSsoClient()

SingleSignOn 클라이언트의 사용 여부를 확인합니다.

void takePermit(IHostOptions.PermitLimitType type)

특정 유형의 허가가 필요합니다.

void validateOptions()

IHostOptions에 설정된 옵션이 유효한지 확인합니다.

공개 생성자

HostOptions

public HostOptions ()

공개 메서드

getAvailablePermits

public Integer getAvailablePermits (IHostOptions.PermitLimitType type)

지정된 유형의 이용 가능한 허가 수를 반환합니다.

매개변수
type IHostOptions.PermitLimitType

반환 값
Integer

getCacheSizeLimit

public Long getCacheSizeLimit ()

로컬 파일 캐시의 최대 허용 크기(바이트)를 반환합니다.

반환 값
Long

getConcurrentDownloadLimit

public Integer getConcurrentDownloadLimit ()

허용되는 최대 동시 다운로드 수를 반환합니다. 원격 빌드를 다운로드하는 IBuildProvider에서 사용합니다.

반환 값
Integer

getConcurrentFlasherLimit

public Integer getConcurrentFlasherLimit ()

허용할 동시 플래싱의 최대 개수를 반환합니다. DeviceFlashPreparer에서 사용됩니다.

반환 값
Integer 동시 플래싱 제한입니다.

getConcurrentVirtualDeviceStartupLimit

public Integer getConcurrentVirtualDeviceStartupLimit ()

허용되는 동시 가상 기기 시작의 최대 개수를 반환합니다. 가상 기기를 시작하는 RemoteAndroidVirtualDevice에서 사용합니다.

반환 값
Integer

getDownloadCacheDir

public File getDownloadCacheDir ()

다운로드한 아티팩트를 저장하는 데 사용되는 경로를 반환합니다.

반환 값
File

getFastbootTmpDir

public File getFastbootTmpDir ()

빠른 부팅에서 임시 폴더로 사용해야 하는 경로를 반환합니다.

반환 값
File

getInUsePermits

public int getInUsePermits (IHostOptions.PermitLimitType type)

지정된 유형에 사용 중인 허가 수를 반환합니다.

매개변수
type IHostOptions.PermitLimitType

반환 값
int

getKnownGceDeviceIpPool

public  getKnownGceDeviceIpPool ()

특정 IP와 연결된 알려진 gce-device입니다.

반환 값

getKnownPreconfigureVirtualDevicePool

public  getKnownPreconfigureVirtualDevicePool ()

알려진 사전 구성된 가상 기기 풀입니다.

반환 값

getKnownRemoteDeviceIpPool

public  getKnownRemoteDeviceIpPool ()

특정 IP와 연결된 알려진 원격 기기입니다.

반환 값

getLabels

public  getLabels ()

호스트의 라벨을 가져옵니다.

반환 값

getNetworkInterface

public String getNetworkInterface ()

원격 테스트 기기에 연결하는 데 사용된 네트워크 인터페이스를 반환합니다.

반환 값
String

getServiceAccountJsonKeyFiles

public  getServiceAccountJsonKeyFiles ()

서비스 계정 json 키 파일의 맵을 반환합니다.

반환 값

getTestPhaseTimeout

public long getTestPhaseTimeout ()

지정된 테스트 단계 수준 제한 시간을 반환합니다. 기본값은 0이며 시간 제한이 없습니다.

반환 값
long

getUseZip64InPartialDownload

public boolean getUseZip64InPartialDownload ()

부분 다운로드에 zip64 형식을 사용해야 하는지 확인합니다.

반환 값
boolean

initConcurrentLocks

public void initConcurrentLocks ()

동시 잠금을 초기화합니다.

isFastbootdEnable

public boolean isFastbootdEnable ()

fastbootd 모드 지원의 사용 설정 여부를 반환합니다.

반환 값
boolean

isHostMetricReportingDisabled

public boolean isHostMetricReportingDisabled ()

호스트 측정항목 보고를 사용 중지해야 하는지 여부를 반환합니다.

반환 값
boolean

is점진적FlashingEnabled

public boolean isIncrementalFlashingEnabled ()

증분 플래싱의 사용 여부를 반환합니다.

반환 값
boolean

isOptOutOf점진적플래싱

public boolean isOptOutOfIncrementalFlashing ()

호스트가 증분 플래싱을 선택 해제할지 여부를 반환합니다.

반환 값
boolean

returnPermit

public void returnPermit (IHostOptions.PermitLimitType type)

지정된 유형의 허가를 반환합니다.

매개변수
type IHostOptions.PermitLimitType

야후 플래시와 퓨즈 Zip

public boolean shouldFlashWithFuseZip ()

퓨즈 마운트 기기 이미지 ZIP 파일로 플래시해야 하는지 여부를 반환합니다.

반환 값
boolean

shouldUseSsoClient

public Boolean shouldUseSsoClient ()

SingleSignOn 클라이언트의 사용 여부를 확인합니다.

반환 값
Boolean

TakePermit

public void takePermit (IHostOptions.PermitLimitType type)

특정 유형의 허가가 필요합니다.

매개변수
type IHostOptions.PermitLimitType

유효성 검사 옵션

public void validateOptions ()

IHostOptions에 설정된 옵션이 유효한지 확인합니다.

생성 값
ConfigurationException