public abstract class RhnJavaJob extends java.lang.Object implements RhnJob
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
log |
DEFAULT_LOGGING_LAYOUT
Constructor and Description |
---|
RhnJavaJob() |
Modifier and Type | Method and Description |
---|---|
void |
appendExceptionToLogError(java.lang.Exception e)
appends an exception message to log error
useful in case job failed to start
|
void |
execute(org.quartz.JobExecutionContext context,
TaskoRun run)
execute method to be called
|
protected void |
executeExtCmd(java.lang.String[] args) |
protected org.apache.log4j.Logger |
getLogger() |
protected org.apache.log4j.Logger getLogger()
public void appendExceptionToLogError(java.lang.Exception e)
appendExceptionToLogError
in interface RhnJob
e
- exceptionpublic void execute(org.quartz.JobExecutionContext context, TaskoRun run) throws org.quartz.JobExecutionException
protected void executeExtCmd(java.lang.String[] args) throws org.quartz.JobExecutionException
org.quartz.JobExecutionException