java.lang.Runnablepublic class Migration extends Competency
| Modifier and Type | Class | Description |
|---|---|---|
class |
Migration.Device |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
SUCCESS_TAG |
architectureavailable, competencyName, competencyType, plan, running| Constructor | Description |
|---|---|
Migration(IArchitecture architecture,
java.lang.String configFile) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addMigrationData(org.w3c.dom.Element xmlElement) |
|
protected boolean |
competencyCode(java.util.HashMap<java.lang.String,java.lang.String> parameters) |
every competency sub class must implement this method and in it perform
the competency code.
|
java.util.Set<Migration.Device> |
getAllDevices() |
|
java.util.Set<Migration.Device> |
getAvailableDevices() |
|
java.util.Map<java.lang.String,Migration.Device> |
getDeviceList() |
|
protected Synchronizer |
getNewSynchronizer(int listenPort) |
|
void |
importConfig(org.w3c.dom.Document doc) |
|
void |
initialize() |
custom competency initialisation code should go in here
|
boolean |
isOccupied() |
|
protected java.io.InputStream |
openConfigFile(java.lang.String configFile) |
This method is responsible for opening the configuration file correctly.
|
void |
registerHandlers() |
registers request and event handlers of the competency execution system,
if overridden, remember to call super.registerHandlers(); from within
|
boolean |
runsInBackground() |
every competency must provide information of whether it will run in the background
permanently (returns true) or whether it will be invoked through the competency
execution system (returns false)
|
getArchitecture, isConnected, onDestroy, raisecancel, getCompetencyName, getCompetencyType, isAvailable, isRunning, requestStartCompetency, run, setAdditionalDatapublic static final java.lang.String SUCCESS_TAG
public Migration(IArchitecture architecture, java.lang.String configFile)
protected java.io.InputStream openConfigFile(java.lang.String configFile)
public void initialize()
Competencyinitialize in class Competencyprotected Synchronizer getNewSynchronizer(int listenPort) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic final void registerHandlers()
CompetencyregisterHandlers in class Competencypublic boolean runsInBackground()
CompetencyrunsInBackground in class Competencyprotected boolean competencyCode(java.util.HashMap<java.lang.String,java.lang.String> parameters)
CompetencycompetencyCode in class Competencyparameters - a map including running parameters and their valuespublic void addMigrationData(org.w3c.dom.Element xmlElement)
public java.util.Map<java.lang.String,Migration.Device> getDeviceList()
public java.util.Set<Migration.Device> getAllDevices()
public java.util.Set<Migration.Device> getAvailableDevices()
public void importConfig(org.w3c.dom.Document doc)
public boolean isOccupied()