java.lang.Object
cl.netswitch.lib.dto.ExecStats
- All Implemented Interfaces:
Serializable
Provides execution statistics.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the execution.int
Returns the total number of times the service has been executed.double
getMaxMS()
Returns the maximum execution time of the service (millisecs).Returns the name of the metaServer.double
getMinMS()
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).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 newExecStats
instance.
-
-
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
Returns the name of the execution.- Returns:
- the name of the execution.
-
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
- ifexecutions
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
- iftimeMS
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
- ifmaxMS
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
- ifminMS
is out-of-range.
-
toString
Returns a string representation of this pool statistics. -
toCSV
Returns a CSV string representation of this pool statistics.- Returns:
- a CSV string representation of this pool statistics.
-