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 theApplicationDescription
array representing additional applications to install.Returns theDeviceVitalsCollectOptions
defining which device vitals should be collected in this session.Returns aDeviceSource
representing the source of the device to use.boolean
Indicates whether logs should be collected in this session.boolean
Indicates whether Service Virtualization is enabled in this session.setAppsToInstall
(ApplicationDescription[] appsToInstall) Sets theApplicationDescription
array representing additional applications to install.setCollectLogs
(boolean collectLogs) Sets whether logs should be collected in this session.setCollectVitals
(DeviceVitalsCollectOptions collectVitals) Sets theDeviceVitalsCollectOptions
defining which device vitals should be collected in this session.setDeviceSource
(DeviceSource deviceSource) Sets theDeviceSource
representing 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 theApplicationDescription
array representing additional applications to install.- Returns:
- the
ApplicationDescription
array representing additional applications to install.
-
setAppsToInstall
Sets theApplicationDescription
array representing additional applications to install.- Parameters:
appsToInstall
- theApplicationDescription
array representing additional applications to install.- Returns:
- the
DeviceSessionOptions
instance with the updated state (builder pattern).
-
getDeviceSource
Returns aDeviceSource
representing the source of the device to use.- Returns:
- a
DeviceSource
representing the source of the device to use.
-
setDeviceSource
Sets theDeviceSource
representing the source of the device to use.- Parameters:
deviceSource
- theDeviceSource
representing the source of the device to use.- Returns:
- the
DeviceSessionOptions
instance 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
DeviceSessionOptions
instance with the updated state (builder pattern).
-
getCollectVitals
Returns theDeviceVitalsCollectOptions
defining which device vitals should be collected in this session.- Returns:
- the
DeviceVitalsCollectOptions
defining which device vitals should be collected in this session.
-
setCollectVitals
Sets theDeviceVitalsCollectOptions
defining which device vitals should be collected in this session.- Parameters:
collectVitals
- theDeviceVitalsCollectOptions
defining which device vitals should be collected in this session.- Returns:
- the
DeviceSessionOptions
instance 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
DeviceSessionOptions
instance with the updated state (builder pattern).
-