Class ExecStats
java.lang.Object
cl.netswitch.lib.dto.ExecStats
- All Implemented Interfaces:
Serializable
Provides execution statistics.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the execution.intReturns the total number of times the service has been executed.doublegetMaxMS()Returns the maximum execution time of the service (millisecs).Returns the name of the metaServer.doublegetMinMS()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.doubleReturns the total execution time of the service (millisecs).voidsetExecName(String execName) Changes the name of the execution.voidsetExecutions(int executions) Changes the total number of times the service has been executed.voidsetMaxMS(double maxMS) Changes the maximum execution time of the service (millisecs).voidsetMetaName(String metaName) Changes the name of the metaServer.voidsetMinMS(double minMS) Changes the minimum execution time of the service (millisecs).voidsetServerName(String serverName) Changes the execution server name.voidsetStatsName(String statsName) Changes the name of the execution statistics.voidsetStatsType(String statsType) Changes the type of the execution statistics.voidsetTimeMS(double timeMS) Changes the total execution time of the service (millisecs).toCSV()Returns a CSV string representation of this pool statistics.toString()Returns a string representation of this pool statistics.
-
Constructor Details
-
ExecStats
public ExecStats()Constructs a newExecStatsinstance.
-
-
Method Details
-
getMetaName
Returns the name of the metaServer.- Returns:
- the name of the metaServer.
-
setMetaName
Changes the name of the metaServer.- Parameters:
metaName- the new name of the metaServer.
-
getStatsType
Returns the type of the execution statistics.- Returns:
- the type of the execution statistics.
-
setStatsType
Changes the type of the execution statistics.- Parameters:
statsType- the new type of the statistics.
-
getStatsName
Returns the name of the execution statistics.- Returns:
- the name of the execution statistics.
-
setStatsName
Changes the name of the execution statistics.- Parameters:
statsName- the new name of the statistics.
-
getServerName
Returns the execution server name.- Returns:
- the execution server name.
-
setServerName
Changes the execution server name.- Parameters:
serverName- the new the server name.
-
getExecName
-
setExecName
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- ifexecutionsis 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- iftimeMSis 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- ifmaxMSis 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- ifminMSis out-of-range.
-
toString
-
toCSV
Returns a CSV string representation of this pool statistics.- Returns:
- a CSV string representation of this pool statistics.
-