Class AbstractIpmiRunner<T>

java.lang.Object
org.sentrysoftware.ipmi.client.runner.AbstractIpmiRunner<T>
Type Parameters:
T - Represent the data type managed by the runner
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
GetChassisStatusRunner, GetFrusRunner, GetSensorsRunner

public abstract class AbstractIpmiRunner<T> extends Object implements AutoCloseable
This abstract class implements common features required by FRUs, Sensor and Chassis Status runners.
  • Method Details

    • doRun

      public abstract void doRun() throws Exception
      Proceed with the IPMI request
      Throws:
      Exception - If the sensor or fru retrieval fails
    • getResult

      public T getResult()
      Returns:
      The actual result set by the concrete runner
    • setResult

      public void setResult(T result)
      Set the final result
      Parameters:
      result - The concrete runner result
    • authenticate

      public void authenticate() throws Exception
      Authenticate IPMI
      Throws:
      Exception - If the authentication fails
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception