public class TAD4ZLoadCronTask extends SimpleCronTask
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList |
filesAndServices
ArrayList of transformed files and the enterprise services they are to be loaded with.
|
protected boolean |
isRunning
Whether the task is already running.
|
MboRemote |
parameterValidationMbo |
protected java.util.ArrayList |
transformations
ArrayList of names of xsl transformation files.
|
dbSeed, interval, intervalFlag, lastRun, lastRunDate, seed, shutdown, sleepTime, valV| Constructor and Description |
|---|
TAD4ZLoadCronTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
cronAction()
Gets the SwKBT export file, transforms it into multiple files in the working directory,
and loads the transformed files using the MEA.
|
protected void |
doLoadFiles()
Load each of the files in filesAndServices ArrayList into the
enterprise services also listed there.
|
protected void |
doTransformations()
Perform each of the transformations listed in transformations array.
|
java.lang.String |
getCatalogID()
Return the catalogId for TAD4Z
|
java.lang.String |
getInstanceName()
Returns instance.getString("instancename");
|
protected java.lang.String |
getOutfilePrefix()
Return the prefix for the intermediate files
|
CrontaskParamInfo[] |
getParameters()
Process the parameters array into a CrontaskParamInfo array (Used in creation of a
new task through the UI).
|
MboRemote |
getParameterValidationMbo(CrontaskInstanceRemote instance)
Caches and returns the validation mbo for the crontask parameters, SWKBTCRON
|
protected void |
initFilesAndServices()
Populates ArrayList of transformed files to be loaded in order in doLoadFiles().
|
protected void |
initTransformations()
Clears and populates ArrayList transformations with names of xsl transformations to be run in order in doTransformations().
|
boolean |
isOKToRun(MXServerRemote server)
Returns false if this instance is already running.
|
protected boolean |
isStepPossible(int stepConstant) |
protected boolean |
retrieveFile()
***************************************************************
Get the file using ImportKBT.performImport()
|
void |
start()
Initialize arrays of transformations and files and services.
|
void |
stop()
Give an info message that task is stopping
|
beforeRemoval, getCronTaskHistoryMsg, getCrontaskInstance, getCronTaskLogger, getCronTaskSqlLogger, getDBLastSeed, getEnteredValueVector, getInterval, getIntervalFlag, getLastRunDate, getLastSeed, getName, getParamAsBoolean, getParamAsDate, getParamAsDouble, getParamAsInt, getParamAsString, getParameter, getParameterValidationMbo, getRunasUserInfo, getSleepTime, init, isShutdown, setCronTaskHistoryMsg, setCrontaskInstance, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime, shutdownpublic MboRemote parameterValidationMbo
protected java.util.ArrayList transformations
initTransformations()protected java.util.ArrayList filesAndServices
initFilesAndServices()protected boolean isRunning
#isOkToRunpublic java.lang.String getCatalogID()
protected java.lang.String getOutfilePrefix()
public CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
getParameters in interface CronTaskgetParameters in class SimpleCronTaskMXExceptionjava.rmi.RemoteExceptionSimpleCronTask.getParameters(),
ImportUIConstants.CRONPARAMETERSpublic MboRemote getParameterValidationMbo(CrontaskInstanceRemote instance) throws MXException, java.rmi.RemoteException
getParameterValidationMbo in interface CronTaskgetParameterValidationMbo in class SimpleCronTaskMXExceptionjava.rmi.RemoteExceptionCronTask.getParameterValidationMbo(CrontaskInstanceRemote)protected boolean isStepPossible(int stepConstant)
public void cronAction()
cronAction in interface CronTaskcronAction in class SimpleCronTaskSimpleCronTask.cronAction(),
retrieveFile(),
doTransformations(),
doLoadFiles()protected boolean retrieveFile()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionImportKBT.performImport()public void start()
start in interface CronTaskstart in class SimpleCronTaskSimpleCronTask.start(),
initTransformations(),
initFilesAndServices()public void stop()
stop in interface CronTaskstop in class SimpleCronTaskSimpleCronTask.stop()protected void initTransformations()
transformationsprotected void initFilesAndServices()
filesAndServicesprotected void doTransformations()
throws java.rmi.RemoteException,
MXException
MXExceptionjava.rmi.RemoteException#initTransformations()}protected void doLoadFiles()
throws java.rmi.RemoteException,
MXException
MXExceptionjava.rmi.RemoteException#initFilesAndServices()}public boolean isOKToRun(MXServerRemote server)
isOKToRun in interface CronTaskisOKToRun in class SimpleCronTaskpsdi.server.CronTask#isOKToRun();public java.lang.String getInstanceName()