Package flexagon.fd.core.plugin
Class AbstractPartialDeployPluginProvider
java.lang.Object
flexagon.fd.core.plugin.AbstractPluginProvider
flexagon.fd.core.plugin.AbstractPartialDeployPluginProvider
- All Implemented Interfaces:
PluginProvider
Base class for partial deployment plugins.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected void_afterDeploy(PluginObjectResults pPluginObjectResults) protected voidprotected void_beforeDeploy(PluginObjectResults pPluginObjectResults) execute()Must be implemented by the concrete subclass to perform the execution of the plugin operation.protected abstract DeployStatusEnumexecuteFile(PackageObject pPackageObject, File pFile) Subclass can implement processing of each individual package object.protected voidprotected voidgenerateArtifactZipFile(List<PackageObject> pPackageObjects) Subclass can implement how to create artifact zip file.protected booleanSubclass can implement if they want to stop on error or not.protected booleanisBuild()protected booleanisDeploy()protected voidmarkEnd()protected voidprotected booleanMethods inherited from class flexagon.fd.core.plugin.AbstractPluginProvider
abortOnRequest, abortOnRequest, cleanup, getBooleanCurrentInstancePropertyValue, getBooleanCurrentInstancePropertyValueOrDefault, getBooleanInput, getBooleanInputOrDefault, getBooleanInstancePropertyValue, getBooleanInstancePropertyValueOrDefault, getBooleanProjectPropertyValue, getBooleanProjectPropertyValueOrDefault, getDoubleCurrentInstancePropertyValue, getDoubleCurrentInstancePropertyValueOrDefault, getDoubleInput, getDoubleInputOrDefault, getDoubleInstancePropertyValue, getDoubleInstancePropertyValueOrDefault, getDoubleProjectPropertyValue, getDoubleProjectPropertyValueOrDefault, getIntegerCurrentInstancePropertyValue, getIntegerCurrentInstancePropertyValueOrDefault, getIntegerInput, getIntegerInputOrDefault, getIntegerInstancePropertyValue, getIntegerInstancePropertyValueOrDefault, getIntegerProjectPropertyValue, getIntegerProjectPropertyValueOrDefault, getLongCurrentInstancePropertyValue, getLongCurrentInstancePropertyValueOrDefault, getLongInput, getLongInputOrDefault, getLongInstancePropertyValue, getLongInstancePropertyValueOrDefault, getLongProjectPropertyValue, getLongProjectPropertyValueOrDefault, getStringCurrentInstancePropertyValue, getStringCurrentInstancePropertyValueOrDefault, getStringInput, getStringInputOrDefault, getStringInstancePropertyValue, getStringInstancePropertyValueOrDefault, getStringProjectPropertyValue, getStringProjectPropertyValueOrDefault, getWorkflowExecutionContext, isExecutionAborting, setOutput, setWorkflowExecutionContext, validate, validateContext, validateContext, validateRequiredInputs, validateRequiredPropertiesForCurrentInstance, validateRequiredPropertiesForInstance
-
Field Details
-
mFailedArtifacts
-
mFailedMessages
-
MARKER
- See Also:
-
-
Constructor Details
-
AbstractPartialDeployPluginProvider
public AbstractPartialDeployPluginProvider()
-
-
Method Details
-
isBuild
protected boolean isBuild() -
isDeploy
protected boolean isDeploy() -
execute
Description copied from class:AbstractPluginProviderMust be implemented by the concrete subclass to perform the execution of the plugin operation.- Specified by:
executein interfacePluginProvider- Specified by:
executein classAbstractPluginProvider- Returns:
- the result of the plugin operation execution
- Throws:
FlexCheckedException- if the plugin operation fails
-
_afterBuild
- Throws:
FlexCheckedException
-
_beforeBuild
- Throws:
FlexCheckedException
-
_afterDeploy
- Throws:
FlexCheckedException
-
_beforeDeploy
- Throws:
FlexCheckedException
-
shouldAttemptDeploy
-
extractArtifactZip
- Throws:
FlexCheckedException
-
markStart
-
markEnd
protected void markEnd() -
executeFile
protected abstract DeployStatusEnum executeFile(PackageObject pPackageObject, File pFile) throws FlexCheckedException Subclass can implement processing of each individual package object. If exception is thrown then file is considered Failed. Otherwise, use returned status unless null.- Parameters:
pPackageObject-pFile-- Returns:
- Status of the package object. If null will decide based on if an exception was thrown or not.
- Throws:
FlexCheckedException
-
generateArtifactZipFile
protected void generateArtifactZipFile(List<PackageObject> pPackageObjects) throws FlexCheckedException Subclass can implement how to create artifact zip file.- Parameters:
pPackageObjects-- Throws:
FlexCheckedException
-
getStopOnError
protected boolean getStopOnError()Subclass can implement if they want to stop on error or not. If exception is thrown and this is true execution will stop. If false remaining files will continue to be executed. Always true if not overridden.- Returns:
- Whether to stop on error or not.
-