Package com.nomagic.magicdraw.uml2.util
Class TimeTrackerFactory
java.lang.Object
com.nomagic.magicdraw.uml2.util.TimeTrackerFactory
Creates and instance of @
TimeTracker
Normal tracker is returned if passed Logger has verbosity of info category or upper, dummy tracker otherwise.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeTracker
Create time tracker.static TimeTracker
create
(String message, org.apache.logging.log4j.Logger log, int oneOperationTimeout, int batchOperationsTimeout) Create time tracker.static TimeTracker
Create time tracker with formatted message - using String.format method.
-
Field Details
-
DEFAULT_SINGLE_OPERATION_TIMEOUT
public static final int DEFAULT_SINGLE_OPERATION_TIMEOUT- See Also:
-
DEFAULT_BATCH_OPERATION_TIMEOUT
public static final int DEFAULT_BATCH_OPERATION_TIMEOUT- See Also:
-
-
Constructor Details
-
TimeTrackerFactory
public TimeTrackerFactory()
-
-
Method Details
-
create
Create time tracker.- Parameters:
message
- formatted messagelog
- logger
-
create
public static TimeTracker create(String message, org.apache.logging.log4j.Logger log, Object... args) Create time tracker with formatted message - using String.format method.- Parameters:
message
- formatted messagelog
- loggerargs
- message arguments
-
create
public static TimeTracker create(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
-