Interface CommonServiceInterface<S>

Type Parameters:
S - the entity type returned by the service implementation
All Known Implementing Classes:
BatteryService, BiosService, DiskDriveService, DiskPartitionService, MainboardPortService, MonitorService, NetworkAdapterConfigurationService, NetworkAdapterService, OperatingSystemService, PhysicalMemoryService, ProcessorCacheService, ProcessorService, VideoControllerService

public interface CommonServiceInterface<S>
Common service interface whose method implementations provide a way to fetch WMI data from Powershell in the form of a List
Since:
2.2.0
Author:
Egg-03
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Implementations of this method are expected to query the Powershell using methods that automatically handle the Powershell process lifecycle and then use MapperUtil to map the results to the expected entity types
    get(com.profesorfalken.jpowershell.PowerShell powerShell)
    Implementations of this method are expected to query the Powershell using methods that delegate the responsibility of managing the Powershell session to the caller
  • Method Details

    • get

      List<S> get()
      Implementations of this method are expected to query the Powershell using methods that automatically handle the Powershell process lifecycle and then use MapperUtil to map the results to the expected entity types
      Returns:
      a List of entities of type <S> defined by the caller
    • get

      List<S> get(com.profesorfalken.jpowershell.PowerShell powerShell)
      Implementations of this method are expected to query the Powershell using methods that delegate the responsibility of managing the Powershell session to the caller
      Parameters:
      powerShell - the caller-managed powershell session passed to the method
      Returns:
      a List of entities of type <S> defined by the caller