public class JobDeployer extends AbstractInstancePersistingDeployer<JobDefinition,Job> implements org.springframework.beans.factory.DisposableBean
deploymentHandler, instanceRepository
composedJobParser, definitionKind, parser
Constructor and Description |
---|
JobDeployer(ZooKeeperConnection zkConnection,
JobDefinitionRepository definitionRepository,
JobRepository instanceRepository,
XDParser parser,
MessageBus messageBus,
DeploymentHandler deploymentHandler) |
Modifier and Type | Method and Description |
---|---|
protected JobDefinition |
createDefinition(java.lang.String name,
java.lang.String definition) |
void |
destroy() |
protected java.lang.String |
getDeploymentPath(JobDefinition definition)
Return the ZooKeeper path used for deployment requests for the
given definition.
|
void |
launch(java.lang.String name,
java.lang.String jobParameters) |
protected Job |
makeInstance(JobDefinition definition)
Create an running instance out of the given definition;
|
beforeDelete, deleteAll, deploy, deploymentInfo, deploymentInfo, deployResource, undeploy, undeployAll, undeployResource, validateBeforeDeploy, validateBeforeUndeploy
afterSave, basicDeploy, createModuleDefinitions, delete, findAll, findAll, findOne, getDefinitionRepository, getZooKeeperConnection, save, throwAlreadyDeployedException, throwDefinitionAlreadyExistsException, throwDefinitionNotDeployable, throwNoSuchDefinitionException, throwNoSuchDefinitionException, throwNotDeployedException, validateBeforeDelete, validateBeforeSave
public JobDeployer(ZooKeeperConnection zkConnection, JobDefinitionRepository definitionRepository, JobRepository instanceRepository, XDParser parser, MessageBus messageBus, DeploymentHandler deploymentHandler)
protected Job makeInstance(JobDefinition definition)
AbstractInstancePersistingDeployer
makeInstance
in class AbstractInstancePersistingDeployer<JobDefinition,Job>
public void launch(java.lang.String name, java.lang.String jobParameters)
protected JobDefinition createDefinition(java.lang.String name, java.lang.String definition)
createDefinition
in class AbstractDeployer<JobDefinition>
protected java.lang.String getDeploymentPath(JobDefinition definition)
AbstractDeployer
getDeploymentPath
in class AbstractDeployer<JobDefinition>
definition
- definition for which to obtain pathpublic void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception