public abstract class AbstractServiceEngineMojo extends AbstractBWMojo
This abstract class defines the core features for the execution of Service inside a BusinessWorks engine.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BWENGINE_ERROR_STARTING |
protected static java.lang.String |
BWENGINE_MISSING |
protected static java.lang.String |
BWENGINE_STARTING |
protected static java.lang.String |
BWENGINE_STOPPING |
protected static java.lang.String |
BWENGINE_TIMEOUT_STARTING |
protected int |
maxPort
The maximum value for the randomly chosen port.
|
protected int |
minPort
The minimum value for the randomly chosen port.
|
protected ServiceAgentInEngine<?> |
serviceAgent
A Service Agent is a Web Service representation in TIBCO BusinessWorks.
|
protected java.io.File |
tibcoBWEnginePath
Path to the BusinessWorks Engine binary.
|
ALIASES_FILE, APPMANAGE_BINARY_NOTFOUND, buildLibDirectory, buildSrcDirectory, BWEAR_DEPLOY_TYPE, BWEAR_EXTENSION, BWEAR_TYPE, BWPROJECT_NOTFOUND, BWPROJECT_PREF_LIB_ERROR_MSG, dependenciesIgnored, DESIGNER_BINARY_NOTFOUND, DESIGNER5_PREFS, directory, DTL_FILE_NAME, FILE_ALIAS_PREFIX, FILE_ALIAS_PREFIX_ESCAPED, HAWK_BINARY_NOTFOUND, hawkDomain, hawkRvDaemon, hawkRvNetwork, hawkRvService, hawkSubscribeInterval, hawkSubscribeNumberOfRetry, hawkVersion, hideLibraryResources, JAR_EXTENSION, JAR_TYPE, mavenPropertyPattern, outputDirectory, packageDirectory, POM_EXTENSION, POM_TYPE, projectDirectory, PROJLIB_EXTENSION, PROJLIB_TYPE, PROPERTIES_EXTENSION, session, SKIPPING, sourceEncoding, testDirectory, testLibDirectory, testSrcDirectory, TIBCO_ALIAS_PREFIX, TIBCO_HOME_DIR, tibcoAppManagePath, tibcoAppManageTRAPath, tibcoBuildEARTRAPath, tibcoBuildEARUseDesignerTRA, tibcoBuildLibraryTRAPath, tibcoBuildLibraryUseDesignerTRA, tibcoBWEngineTRAPath, tibcoDesignerPath, tibcoDesignerTRAPath, tibcoHome, tibcoRvHomePath, timeOut, XML_EXTENSION, XML_TYPE
Constructor and Description |
---|
AbstractServiceEngineMojo() |
Modifier and Type | Method and Description |
---|---|
static boolean |
available(int port,
int minPort,
int maxPort) |
void |
execute()
The execute method of this Mojo will :
check that the BusinessWorks project exists
copy the Designer5.prefs file
copy the .designtimelibs file useful for setting a TIBCO environment
for the project being built.
|
abstract void |
executeServiceMethods() |
abstract java.lang.String |
getBWEnginePort() |
java.lang.Integer |
getFreePort() |
java.lang.Integer |
getFreePort(int minPort,
int maxPort) |
protected abstract java.io.File |
getProjectToRunPath() |
abstract int |
getRetryInterval() |
abstract java.lang.String |
getServiceFailureMessage() |
abstract java.lang.String |
getServiceName() |
abstract java.lang.String |
getServiceTimeoutMessage() |
int |
getTimeOut() |
abstract void |
initServiceAgent() |
boolean |
isStarted() |
void |
stopEngine()
This will call the stopEngine() method of the Service Agent.
|
checkAppManage, checkDesigner, enableTestScope, getAliasesFile, getBWEARAlias, getBWEARName, getBWEARsDependencies, getDependencies, getDependencyPath, getDesigner5Prefs, getJarAlias, getJarDependencies, getJarName, getProject, getProjlibAlias, getProjlibName, getProjlibsDependencies, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueInSettings, getRootProjectProperty, getRootProjectProperty, getSession, initHawk, isCurrentGoal, launchTIBCOBinary, launchTIBCOBinary, propertiesManager, propertyExists, propertyExists, propertyExistsInSettings, propertyExistsInSettings, readDependenciesFromFile, replaceProperties, setProject, setSession, setSettings
protected static final java.lang.String BWENGINE_MISSING
protected static final java.lang.String BWENGINE_STARTING
protected static final java.lang.String BWENGINE_STOPPING
protected static final java.lang.String BWENGINE_ERROR_STARTING
protected static final java.lang.String BWENGINE_TIMEOUT_STARTING
@Parameter(property="bwengine.path", required=true) protected java.io.File tibcoBWEnginePath
@Parameter(property="bw.service.minPort", defaultValue="49152") protected int minPort
The minimum value for the randomly chosen port.
@Parameter(property="bw.service.maxPort", defaultValue="65535") protected int maxPort
The maximum value for the randomly chosen port.
protected ServiceAgentInEngine<?> serviceAgent
public boolean isStarted()
public void stopEngine()
public abstract void initServiceAgent() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public abstract void executeServiceMethods() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public abstract java.lang.String getBWEnginePort()
public abstract int getRetryInterval()
public abstract java.lang.String getServiceName()
public abstract java.lang.String getServiceFailureMessage()
public abstract java.lang.String getServiceTimeoutMessage()
public int getTimeOut()
public static boolean available(int port, int minPort, int maxPort)
public java.lang.Integer getFreePort(int minPort, int maxPort)
public java.lang.Integer getFreePort()
public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractBWMojo
The execute method of this Mojo will :
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractBWMojo
org.apache.maven.plugin.MojoExecutionException
protected abstract java.io.File getProjectToRunPath()