net.sf.sasl.aop.monitoring.execution.time
Class TimeUnitsBean

java.lang.Object
  extended by net.sf.sasl.aop.monitoring.execution.time.TimeUnitsBean
Direct Known Subclasses:
MethodExecutionTimeThresholdBean

public class TimeUnitsBean
extends Object

Bean that can store different time values to corresponding time units.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Constructor Summary
TimeUnitsBean()
           
 
Method Summary
 long convertToMilliseconds()
          Converts the time values stored in the bean into milliseconds.
 int getDays()
          Returns the amount of days.
 int getHours()
          Returns the amount of hours.
 int getMilliseconds()
          Returns the amount of milliseconds.
 int getMinutes()
          Returns the amount of minutes.
 int getSeconds()
           
 void setDays(int days)
          Sets the amount of days.
 void setHours(int hours)
          Sets the amount of hours.
 void setMilliseconds(int milliseconds)
          Sets the amount of milliseconds.
 void setMinutes(int minutes)
          Sets the amount of minutes.
 void setSeconds(int seconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUnitsBean

public TimeUnitsBean()
Method Detail

getMilliseconds

public int getMilliseconds()
Returns the amount of milliseconds.

Returns:
any integer value
Since:
0.0.1 (sasl-common-aspect-library)

setMilliseconds

public void setMilliseconds(int milliseconds)
Sets the amount of milliseconds.

Parameters:
milliseconds - any integer value
Since:
0.0.1 (sasl-common-aspect-library)

getSeconds

public int getSeconds()

setSeconds

public void setSeconds(int seconds)

getMinutes

public int getMinutes()
Returns the amount of minutes.

Returns:
any integer value
Since:
0.0.1 (sasl-common-aspect-library)

setMinutes

public void setMinutes(int minutes)
Sets the amount of minutes.

Parameters:
minutes - any integer value
Since:
0.0.1 (sasl-common-aspect-library)

getHours

public int getHours()
Returns the amount of hours.

Returns:
any integer value
Since:
0.0.1 (sasl-common-aspect-library)

setHours

public void setHours(int hours)
Sets the amount of hours.

Parameters:
hours - any integer value
Since:
0.0.1 (sasl-common-aspect-library)

getDays

public int getDays()
Returns the amount of days.

Returns:
any integer value
Since:
0.0.1 (sasl-common-aspect-library)

setDays

public void setDays(int days)
Sets the amount of days.

Parameters:
days - any integer value
Since:
0.0.1 (sasl-common-aspect-library)

convertToMilliseconds

public long convertToMilliseconds()
Converts the time values stored in the bean into milliseconds. The millisecond sum of the converted time values is the returned value.

Returns:
any integer value
Since:
0.0.1 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.