public class ImportKBT
extends java.lang.Object
ImportKBT
calls the actual processing for SwKBT http import.
It is called via #main() or from the SWKBT cron task.
See the crontask parameter descriptions for definitions of the fields.Constructor and Description |
---|
ImportKBT()
ImportCLI Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatabaseInstanceId(java.util.Properties props)
Extracts the databaseInstanceId out of the Properties.
|
java.lang.String |
getDataVersion(java.util.Properties props)
Extracts the dataVersion out of the Properties.
|
java.lang.String |
getHost_() |
java.lang.String |
getImportFile_() |
int |
getNumOfRetries_() |
int |
getPort_() |
java.util.Properties |
getProperties(ImportClient client)
Sends an HTTP request to SwKBT to get the properties via a GetVersion call
|
java.lang.String |
getRepositoryId_() |
int |
getSecBetweenRetries_() |
java.lang.String |
getSourceDir_() |
static void |
main(java.lang.String[] args)
main - ImportCLI entry point
|
boolean |
performImport()
performImport is the start of the actual import processing. |
void |
setHost_(java.lang.String host) |
void |
setImportFile_(java.lang.String importFile) |
void |
setNumOfRetries_(int numOfRetries) |
void |
setPort_(int port) |
void |
setRepositoryId_(java.lang.String repositoryId) |
void |
setSecBetweenRetries_(int secBetweenRetries) |
void |
setSourceDir_(java.lang.String sourceDir) |
public boolean performImport() throws MXSystemException, MXException, java.rmi.RemoteException
performImport
is the start of the actual import processing. This
is called from the crontask or main() after all parameters are set.java.lang.Exception
MXSystemException
MXException
java.rmi.RemoteException
public static void main(java.lang.String[] args)
args
- commandline argumentspublic java.lang.String getDataVersion(java.util.Properties props) throws MXSystemException
props
- MXSystemException
- if there were errors during import processingpublic java.lang.String getDatabaseInstanceId(java.util.Properties props) throws MXSystemException
props
- MXSystemException
- if there were errors during import processingpublic java.util.Properties getProperties(ImportClient client) throws MXSystemException
client
- MXSystemException
- if there were errors during import processingpublic java.lang.String getHost_()
public void setHost_(java.lang.String host)
public int getPort_()
public void setPort_(int port)
public java.lang.String getImportFile_()
public void setImportFile_(java.lang.String importFile)
public java.lang.String getRepositoryId_()
public void setRepositoryId_(java.lang.String repositoryId)
public int getNumOfRetries_()
public void setNumOfRetries_(int numOfRetries)
public int getSecBetweenRetries_()
public void setSecBetweenRetries_(int secBetweenRetries)
public java.lang.String getSourceDir_()
public void setSourceDir_(java.lang.String sourceDir)