public class SwKbtLoadCronTask extends SimpleCronTask
ImportClient
,
ExternalTransformation
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 |
---|
SwKbtLoadCronTask() |
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 SWKbt
|
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, shutdown
public MboRemote parameterValidationMbo
protected java.util.ArrayList transformations
initTransformations()
protected java.util.ArrayList filesAndServices
initFilesAndServices()
protected boolean isRunning
#isOkToRun
public java.lang.String getCatalogID()
protected java.lang.String getOutfilePrefix()
public CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
getParameters
in interface CronTask
getParameters
in class SimpleCronTask
MXException
java.rmi.RemoteException
SimpleCronTask.getParameters()
,
ImportUIConstants.CRONPARAMETERS
public MboRemote getParameterValidationMbo(CrontaskInstanceRemote instance) throws MXException, java.rmi.RemoteException
getParameterValidationMbo
in interface CronTask
getParameterValidationMbo
in class SimpleCronTask
MXException
java.rmi.RemoteException
CronTask.getParameterValidationMbo(CrontaskInstanceRemote)
protected boolean isStepPossible(int stepConstant)
public void cronAction()
cronAction
in interface CronTask
SimpleCronTask.cronAction()
,
retrieveFile()
,
doTransformations()
,
doLoadFiles()
protected boolean retrieveFile() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
ImportKBT.performImport()
public void start()
start
in interface CronTask
start
in class SimpleCronTask
SimpleCronTask.start()
,
initTransformations()
,
initFilesAndServices()
public void stop()
stop
in interface CronTask
stop
in class SimpleCronTask
SimpleCronTask.stop()
protected void initTransformations()
transformations
protected void initFilesAndServices()
filesAndServices
protected void doTransformations() throws java.rmi.RemoteException, MXException
MXException
java.rmi.RemoteException
#initTransformations()}
protected void doLoadFiles() throws java.rmi.RemoteException, MXException
MXException
java.rmi.RemoteException
#initFilesAndServices()}
public boolean isOKToRun(MXServerRemote server)
isOKToRun
in interface CronTask
isOKToRun
in class SimpleCronTask
psdi.server.CronTask#isOKToRun();
public java.lang.String getInstanceName()