|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dvt.app.threadworks.DefaultTaskManagerEnvironment
Represents a default environment for a TaskManager.
Copyright: Delta Vortex Technologies, 2001.
Field Summary | |
static int |
DEFAULT_DIAGNOSTIC_REPORTING_INTERVAL
Default interval for reporting diagnostics in milliseconds. |
static java.lang.String |
DEFAULT_LOG_LABEL
Default log label |
static int |
DEFAULT_MAX_CONCURRENT_TASKS
Default maximum number of concurrent tasks. |
static int |
DEFAULT_MAX_TASK_TIME_ALLOWED
Default maximum time allowed on 1 task in milliseconds. |
static java.lang.String |
DEFAULT_PROP_FILE_NAME
Default properties file name |
Constructor Summary | |
DefaultTaskManagerEnvironment()
|
|
DefaultTaskManagerEnvironment(Logger log,
int maxNbrConcurrentTasks,
int threadPriority,
long maxTaskTimeAllowedInMillis,
long diagnosticReportingIntervalInMillis,
java.lang.String logLabel)
|
|
DefaultTaskManagerEnvironment(java.lang.String propertiesFileName)
|
Method Summary | |
long |
getDiagnosticReportingIntervalInMillis()
Describes how often diagnostic information is logged. |
Logger |
getLogger()
Provides logger for diagnostic info and error reporting. |
java.lang.String |
getLogLabel()
Label for Task Manager in Logs. |
int |
getMaxNbrConcurrentTasks()
Describes the maximum number of tasks that can be run at one time. |
long |
getTaskTimeAllowedInMillis()
Describes how long a task is allowed to run before being terminated. |
int |
getThreadPriority()
Thread priority used for running tasks. |
void |
setDiagnosticReportingIntervalInMillis(long diagnosticReportIntervalInMillis)
Sets how often diagnostic information is logged. |
void |
setLogger(Logger l)
Sets logger for diagnostic info and error reporting. |
void |
setLogLabel(java.lang.String label)
Label for Task Manager in Logs. |
void |
setMaxNbrConcurrentTasks(int maxNbrConcurrentTasks)
Sets the maximum number of tasks that can be run at one time. |
void |
setTaskTimeAllowedInMillis(long timeAllowedInMillis)
Sets how long a task is allowed to run before being terminated. |
void |
setThreadPriority(int priority)
Thread priority used for running tasks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_PROP_FILE_NAME
public static final int DEFAULT_MAX_CONCURRENT_TASKS
public static final int DEFAULT_DIAGNOSTIC_REPORTING_INTERVAL
public static final int DEFAULT_MAX_TASK_TIME_ALLOWED
public static final java.lang.String DEFAULT_LOG_LABEL
Constructor Detail |
public DefaultTaskManagerEnvironment()
public DefaultTaskManagerEnvironment(java.lang.String propertiesFileName) throws java.io.IOException
public DefaultTaskManagerEnvironment(Logger log, int maxNbrConcurrentTasks, int threadPriority, long maxTaskTimeAllowedInMillis, long diagnosticReportingIntervalInMillis, java.lang.String logLabel)
Method Detail |
public Logger getLogger()
getLogger
in interface TaskManagerEnvironment
public void setLogger(Logger l)
public int getMaxNbrConcurrentTasks()
getMaxNbrConcurrentTasks
in interface TaskManagerEnvironment
public void setMaxNbrConcurrentTasks(int maxNbrConcurrentTasks)
public long getTaskTimeAllowedInMillis()
getTaskTimeAllowedInMillis
in interface TaskManagerEnvironment
public void setTaskTimeAllowedInMillis(long timeAllowedInMillis)
public long getDiagnosticReportingIntervalInMillis()
getDiagnosticReportingIntervalInMillis
in interface TaskManagerEnvironment
public void setDiagnosticReportingIntervalInMillis(long diagnosticReportIntervalInMillis)
public int getThreadPriority()
getThreadPriority
in interface TaskManagerEnvironment
public void setThreadPriority(int priority)
public java.lang.String getLogLabel()
getLogLabel
in interface TaskManagerEnvironment
public void setLogLabel(java.lang.String label)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |