public class DefaultConfigurationSystemProxy extends java.lang.Object implements ITaurusSystemProxy
ITaurusSystemProxy for AWM systems which are defined through a
default configurations XML file. The proxy can create AWM systems by either
reading a master configuration file or obtaining a master configuration by
executing an OS command. This depends on how the default system was defined
in the default configurations file.| Constructor and Description |
|---|
DefaultConfigurationSystemProxy(MasterConfigurationReference pMasterConfig,
java.lang.String pAssociatedSystem)
Creates a new default configuration system proxy.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ITaurusSystem> |
create(org.eclipse.core.runtime.IProgressMonitor pMon)
Creates one or several
ITaurusSystems from the stub. |
java.lang.String |
getDescription()
Gets a human readable description of the system stub, ideally containing
brief information about the contained AWM applications.
|
MasterConfigurationReference |
getMasterConfiguration()
Gets the master configuration command.
|
int |
getMasterConfigurationFormat()
Gets the master configuration format, which is always
MasterConfigurationParser.FORMAT_XML if a command is set and will
be determined by the file suffix is a master configuration path has been
set. |
java.lang.String |
getName()
Gets the name of the AWM system stub.
|
java.util.List<TaurusSystemPersistableProxy> |
parseMasterConfiguration()
Parses the master configuration of the system proxy.
|
java.io.InputStream |
readMasterConfiguration(MasterConfigurationReference pMasterConfig)
Reads the master configuration depending on whether a master
configuration path or command was set.
|
public DefaultConfigurationSystemProxy(MasterConfigurationReference pMasterConfig, java.lang.String pAssociatedSystem)
pMasterConfig - the master configuration file referencepAssociatedSystem - (optional) the name of an associated remote systempublic java.lang.String getName()
ITaurusSystemProxygetName in interface ITaurusSystemProxypublic java.lang.String getDescription()
ITaurusSystemProxyExamples:
getDescription in interface ITaurusSystemProxypublic java.util.List<ITaurusSystem> create(org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
ITaurusSystemProxyITaurusSystems from the stub. This can be
used for systems which need to be created by e.g. reading a master
configuration file from a remote system.
Simple ITaurusSystem implementations can simply implement this
interface and return this in a List.
create in interface ITaurusSystemProxypMon - a progress monitorITaurusSystemTaurusCoreException - if an exception occurs during AWM system creationpublic java.util.List<TaurusSystemPersistableProxy> parseMasterConfiguration() throws TaurusCoreException
TaurusCoreException - if parsing the master configuration file failspublic MasterConfigurationReference getMasterConfiguration()
null)public int getMasterConfigurationFormat()
MasterConfigurationParser.FORMAT_XML if a command is set and will
be determined by the file suffix is a master configuration path has been
set.public java.io.InputStream readMasterConfiguration(MasterConfigurationReference pMasterConfig) throws TaurusCoreException
pMasterConfig - the master configuration to readTaurusCoreException - if reading the master configuration file fails or neither a
configuration path nor a command was setCopyright © 2015 Micro Focus GmbH. All rights reserved.