Class ExecStats

java.lang.Object
cl.netswitch.lib.dto.ExecStats
All Implemented Interfaces:
Serializable

public class ExecStats extends Object implements Serializable
Provides execution statistics.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new ExecStats instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the execution.
    int
    Returns the total number of times the service has been executed.
    double
    Returns the maximum execution time of the service (millisecs).
    Returns the name of the metaServer.
    double
    Returns the minimum execution time of the service (millisecs).
    Returns the execution server name.
    Returns the name of the execution statistics.
    Returns the type of the execution statistics.
    double
    Returns the total execution time of the service (millisecs).
    void
    setExecName(String execName)
    Changes the name of the execution.
    void
    setExecutions(int executions)
    Changes the total number of times the service has been executed.
    void
    setMaxMS(double maxMS)
    Changes the maximum execution time of the service (millisecs).
    void
    setMetaName(String metaName)
    Changes the name of the metaServer.
    void
    setMinMS(double minMS)
    Changes the minimum execution time of the service (millisecs).
    void
    setServerName(String serverName)
    Changes the execution server name.
    void
    setStatsName(String statsName)
    Changes the name of the execution statistics.
    void
    setStatsType(String statsType)
    Changes the type of the execution statistics.
    void
    setTimeMS(double timeMS)
    Changes the total execution time of the service (millisecs).
    Returns a CSV string representation of this pool statistics.
    Returns a string representation of this pool statistics.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ExecStats

      public ExecStats()
      Constructs a new ExecStats instance.
  • Method Details

    • getMetaName

      public String getMetaName()
      Returns the name of the metaServer.
      Returns:
      the name of the metaServer.
    • setMetaName

      public void setMetaName(String metaName)
      Changes the name of the metaServer.
      Parameters:
      metaName - the new name of the metaServer.
    • getStatsType

      public String getStatsType()
      Returns the type of the execution statistics.
      Returns:
      the type of the execution statistics.
    • setStatsType

      public void setStatsType(String statsType)
      Changes the type of the execution statistics.
      Parameters:
      statsType - the new type of the statistics.
    • getStatsName

      public String getStatsName()
      Returns the name of the execution statistics.
      Returns:
      the name of the execution statistics.
    • setStatsName

      public void setStatsName(String statsName)
      Changes the name of the execution statistics.
      Parameters:
      statsName - the new name of the statistics.
    • getServerName

      public String getServerName()
      Returns the execution server name.
      Returns:
      the execution server name.
    • setServerName

      public void setServerName(String serverName)
      Changes the execution server name.
      Parameters:
      serverName - the new the server name.
    • getExecName

      public String getExecName()
      Returns the name of the execution.
      Returns:
      the name of the execution.
    • setExecName

      public void setExecName(String execName)
      Changes the name of the execution.
      Parameters:
      execName - the new the item name.
    • getExecutions

      public int getExecutions()
      Returns the total number of times the service has been executed.
      Returns:
      the total number of times the service has been executed.
    • setExecutions

      public void setExecutions(int executions)
      Changes the total number of times the service has been executed.
      Parameters:
      executions - the new value of the property (value ≥ 0).
      Throws:
      IllegalArgumentException - if executions is negative.
    • getTimeMS

      public double getTimeMS()
      Returns the total execution time of the service (millisecs).
      Returns:
      the total execution time of the service (millisecs).
    • setTimeMS

      public void setTimeMS(double timeMS)
      Changes the total execution time of the service (millisecs).
      Parameters:
      timeMS - the new value of the property (millisecs).
      Throws:
      IllegalArgumentException - if timeMS is negative.
    • getMaxMS

      public double getMaxMS()
      Returns the maximum execution time of the service (millisecs).
      Returns:
      the maximum execution time of the service (millisecs).
    • setMaxMS

      public void setMaxMS(double maxMS)
      Changes the maximum execution time of the service (millisecs).
      Parameters:
      maxMS - the new value of the property (millisecs).
      Throws:
      IllegalArgumentException - if maxMS is out-of-range.
    • getMinMS

      public double getMinMS()
      Returns the minimum execution time of the service (millisecs).
      Returns:
      the minimum execution time of the service (millisecs).
    • setMinMS

      public void setMinMS(double minMS)
      Changes the minimum execution time of the service (millisecs).
      Parameters:
      minMS - the new value of the property (millisecs).
      Throws:
      IllegalArgumentException - if minMS is out-of-range.
    • toString

      public String toString()
      Returns a string representation of this pool statistics.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this pool statistics.
    • toCSV

      public String toCSV()
      Returns a CSV string representation of this pool statistics.
      Returns:
      a CSV string representation of this pool statistics.