Package com.nomagic.magicdraw.uml2.util
Class TimeTrackerFactory
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.util.TimeTrackerFactory
-
public class TimeTrackerFactory extends java.lang.ObjectCreates and instance of @TimeTrackerNormal tracker is returned if passed Logger has verbosity of info category or upper, dummy tracker otherwise.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTimeTrackerFactory.DummyTimeTracker
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BATCH_OPERATION_TIMEOUTstatic intDEFAULT_SINGLE_OPERATION_TIMEOUTprivate static TimeTrackerDUMMY_TIME_TRACKER
-
Constructor Summary
Constructors Constructor Description TimeTrackerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeTrackercreate(java.lang.String message, org.apache.logging.log4j.Logger log)Create time tracker.static TimeTrackercreate(java.lang.String message, org.apache.logging.log4j.Logger log, int oneOperationTimeout, int batchOperationsTimeout)Create time tracker.static TimeTrackercreate(java.lang.String message, org.apache.logging.log4j.Logger log, java.lang.Object... args)Create time tracker with formatted message - using String.format method.private static com.nomagic.magicdraw.uml2.util.TimeTrackerImplcreateTracker(java.lang.String message, org.apache.logging.log4j.Logger log, int oneOperationTimeout, int batchOperationsTimeout)
-
-
-
Field Detail
-
DUMMY_TIME_TRACKER
private static final TimeTracker DUMMY_TIME_TRACKER
-
DEFAULT_SINGLE_OPERATION_TIMEOUT
public static final int DEFAULT_SINGLE_OPERATION_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_BATCH_OPERATION_TIMEOUT
public static final int DEFAULT_BATCH_OPERATION_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static TimeTracker create(java.lang.String message, org.apache.logging.log4j.Logger log)
Create time tracker.- Parameters:
message- formatted messagelog- logger
-
create
public static TimeTracker create(java.lang.String message, org.apache.logging.log4j.Logger log, java.lang.Object... args)
Create time tracker with formatted message - using String.format method.- Parameters:
message- formatted messagelog- loggerargs- message arguments
-
create
public static TimeTracker create(java.lang.String message, org.apache.logging.log4j.Logger log, int oneOperationTimeout, int batchOperationsTimeout)
Create time tracker.- Parameters:
message- formatted messagelog- loggeroneOperationTimeout- operation timeoutbatchOperationsTimeout- batch operation timeout
-
createTracker
private static com.nomagic.magicdraw.uml2.util.TimeTrackerImpl createTracker(java.lang.String message, org.apache.logging.log4j.Logger log, int oneOperationTimeout, int batchOperationsTimeout)
-
-