Class StubDeviceManagement

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.StubDeviceManagement
All Implemented Interfaces:
de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations, de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations, de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations

public class StubDeviceManagement extends Object implements de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations, de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations, de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations
Stub Service Implementation for DeviceManagement.
Author:
Dennis Pidun, University of Hildesheim
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations

    de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations.SSHConnectionDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations
     
    private static de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations
     
    private static de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations.SSHConnectionDetails
     
    (package private) static de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations
    Creates or gets the firmwareOperations mock.
    (package private) static de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations
    Creates or gets the remoteManagementOperations mock.
    (package private) static de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations
    Creates or gets the resourceConfigOperations mock.
    void
    setConfig(String id, String configPath)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • managementOperationsStub

      private static de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations managementOperationsStub
    • firmwareOperationsStub

      private static de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations firmwareOperationsStub
    • resourceConfigOperationsStub

      private static de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations resourceConfigOperationsStub
  • Constructor Details

    • StubDeviceManagement

      public StubDeviceManagement()
  • Method Details

    • mockFirmwareOperations

      static de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations mockFirmwareOperations()
      Creates or gets the firmwareOperations mock.
      Returns:
      the mock
    • mockResourceConfigOperations

      static de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations mockResourceConfigOperations()
      Creates or gets the resourceConfigOperations mock.
      Returns:
      the mock
    • mockRemoteManagementOperations

      static de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations mockRemoteManagementOperations()
      Creates or gets the remoteManagementOperations mock.
      Returns:
      the mock
    • updateRuntime

      public void updateRuntime(String id) throws ExecutionException
      Specified by:
      updateRuntime in interface de.iip_ecosphere.platform.deviceMgt.DeviceFirmwareOperations
      Throws:
      ExecutionException
    • establishSsh

      public de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations.SSHConnectionDetails establishSsh(String id) throws ExecutionException
      Specified by:
      establishSsh in interface de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations
      Throws:
      ExecutionException
    • setConfig

      public void setConfig(String id, String configPath) throws ExecutionException
      Specified by:
      setConfig in interface de.iip_ecosphere.platform.deviceMgt.DeviceResourceConfigOperations
      Throws:
      ExecutionException