com.hp.lft.sdk.mobile

Class DeviceSessionOptions

  • java.lang.Object
    • com.hp.lft.sdk.mobile.DeviceSessionOptions


  • public class DeviceSessionOptions
    extends java.lang.Object
    Defines the options that will be used during the device session.
    • Constructor Detail

      • DeviceSessionOptions

        public DeviceSessionOptions()
        Creates a new instance of DeviceSessionOptions. Note: the default value for collectLogs is true.
    • Method Detail

      • getDeviceSource

        public DeviceSource getDeviceSource()
        Returns a DeviceSource representing the source of the device to use.
        Returns:
        a DeviceSource representing the source of the device to use.
      • 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.
      • 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.
      • setCollectLogs

        public DeviceSessionOptions setCollectLogs(boolean collectLogs)
        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).
      • setEnableServiceVirtualization

        public DeviceSessionOptions setEnableServiceVirtualization(boolean enableServiceVirtualization)
        Sets whether Service Virtualization should be enabled in this session. (By default it is not enabled)
        Parameters:
        enableServiceVirtualization - true if Service Virtualization should be enabled in this session.
        Returns:
        the DeviceSessionOptions instance with the updated state (builder pattern).