Package com.hp.lft.sdk.mobile
Class DeviceSessionOptions
java.lang.Object
com.hp.lft.sdk.mobile.DeviceSessionOptions
Defines the options that will be used during the device session.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theApplicationDescriptionarray representing additional applications to install.Returns theDeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.Returns aDeviceSourcerepresenting the source of the device to use.booleanIndicates whether logs should be collected in this session.booleanIndicates whether Service Virtualization is enabled in this session.setAppsToInstall(ApplicationDescription[] appsToInstall) Sets theApplicationDescriptionarray representing additional applications to install.setCollectLogs(boolean collectLogs) Sets whether logs should be collected in this session.setCollectVitals(DeviceVitalsCollectOptions collectVitals) Sets theDeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.setDeviceSource(DeviceSource deviceSource) Sets theDeviceSourcerepresenting the source of the device to use.setEnableServiceVirtualization(boolean enableServiceVirtualization) Sets whether Service Virtualization should be enabled in this session.
-
Constructor Details
-
DeviceSessionOptions
public DeviceSessionOptions()Creates a new instance ofDeviceSessionOptions.
-
-
Method Details
-
getAppsToInstall
Returns theApplicationDescriptionarray representing additional applications to install.- Returns:
- the
ApplicationDescriptionarray representing additional applications to install.
-
setAppsToInstall
Sets theApplicationDescriptionarray representing additional applications to install.- Parameters:
appsToInstall- theApplicationDescriptionarray representing additional applications to install.- Returns:
- the
DeviceSessionOptionsinstance with the updated state (builder pattern).
-
getDeviceSource
Returns aDeviceSourcerepresenting the source of the device to use.- Returns:
- a
DeviceSourcerepresenting the source of the device to use.
-
setDeviceSource
Sets theDeviceSourcerepresenting the source of the device to use.- Parameters:
deviceSource- theDeviceSourcerepresenting the source of the device to use.- Returns:
- the
DeviceSessionOptionsinstance with the updated state (builder pattern).
-
isCollectLogs
public boolean isCollectLogs()Indicates whether logs should be collected in this session. The default value for collectLogs is true.- Returns:
- true if logs should be collected in this session.
-
setCollectLogs
Sets whether logs should be collected in this session.- Parameters:
collectLogs- true if logs should be collected in this session.- Returns:
- the
DeviceSessionOptionsinstance with the updated state (builder pattern).
-
getCollectVitals
Returns theDeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.- Returns:
- the
DeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.
-
setCollectVitals
Sets theDeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.- Parameters:
collectVitals- theDeviceVitalsCollectOptionsdefining which device vitals should be collected in this session.- Returns:
- the
DeviceSessionOptionsinstance with the updated state (builder pattern).
-
isEnableServiceVirtualization
public boolean isEnableServiceVirtualization()Indicates whether Service Virtualization is enabled in this session. The default value for enableServiceVirtualization is false.- Returns:
- true if Service Virtualization is enabled in this session.
-
setEnableServiceVirtualization
Sets whether Service Virtualization should be enabled in this session.- Parameters:
enableServiceVirtualization- true if Service Virtualization should be enabled in this session.- Returns:
- the
DeviceSessionOptionsinstance with the updated state (builder pattern).
-