/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { client.streamOperations().destroy(this.name); }
/** * Undeploy the current {@link Stream}. This method invokes the remote server * @return A reference the the {@link StreamDefinition} so one can invoke other builder operations such as {@link StreamDefinition#deploy()} */ public StreamDefinition undeploy() { client.streamOperations().undeploy(this.name); return new StreamDefinition(this.name, this.client, this.definition, this.applications); }
/** * Invokes {@link #prepareRestTemplate(RestTemplate)}. * * @return RestTemplate with the required Jackson MixIns applied */ public static RestTemplate getDefaultDataflowRestTemplate() { return prepareRestTemplate(null); }
/** * Deploy the current stream using the deploymentProperties. This method invokes the * remote server * @param deploymentProperties Map of properties to be used during deployment * @return A deployed {@link Stream} */ public Stream deploy(Map<String, String> deploymentProperties) { Map<String, String> resolvedProperties = resolveDeploymentProperties( deploymentProperties); client.streamOperations().deploy(this.name, resolvedProperties); return new Stream(this.name, this.applications, this.definition, this.client); }
public StreamDefinition(String name, DataFlowOperations client, String definition, List<StreamApplication> applications) { this.name = name; this.client = client; this.definition = definition; this.applications = applications; if (StringUtils.isEmpty(definition)) { createStreamDefinition(); } this.client.streamOperations().createStream(this.name, this.definition, false); }
/** * @return Status of the deployed stream */ public String getStatus() { StreamDefinitionResource resource = client.streamOperations() .getStreamDefinition(this.name); return resource.getStatus(); }
private TaskOperations taskOperations() { return dataFlowShell.getDataFlowOperations().taskOperations(); } }
public Link getLink(ResourceSupport resourceSupport, String rel) { Link link = resourceSupport.getLink(rel); if (link == null) { throw new DataFlowServerException( "Server did not return a link for '" + rel + "', links: '" + resourceSupport + "'"); } return link; }
protected StreamOperations streamOperations() { return dataFlowShell.getDataFlowOperations().streamOperations(); } }
@Override public PagedResources<AppRegistrationResource> list() { return list(/* ApplicationType */null); }
private RuntimeOperations runtimeOperations() { return dataFlowShell.getDataFlowOperations().runtimeOperations(); } }
/** * Deploy the current stream using the deploymentProperties. This method invokes the * remote server * @param deploymentProperties Map of properties to be used during deployment * @return A deployed {@link Stream} */ public Stream deploy(Map<String, String> deploymentProperties) { Map<String, String> resolvedProperties = resolveDeploymentProperties( deploymentProperties); client.streamOperations().deploy(this.name, resolvedProperties); return new Stream(this.name, this.applications, this.definition, this.client); }
/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { this.client.streamOperations().destroy(this.name); }
/** * Undeploy the current {@link Stream}. This method invokes the remote server * @return A reference the the {@link StreamDefinition} so one can invoke other builder operations such as {@link StreamDefinition#deploy()} */ public StreamDefinition undeploy() { client.streamOperations().undeploy(this.name); return new StreamDefinition(this.name, this.client, this.definition, this.applications); }
public StreamDefinition(String name, DataFlowOperations client, String definition, List<StreamApplication> applications) { this.name = name; this.client = client; this.definition = definition; this.applications = applications; if (StringUtils.isEmpty(definition)) { createStreamDefinition(); } this.client.streamOperations().createStream(this.name, this.definition, false); }
/** * @return Status of the deployed stream */ public String getStatus() { StreamDefinitionResource resource = client.streamOperations() .getStreamDefinition(this.name); return resource.getStatus(); }
/** * Invokes {@link #prepareRestTemplate(RestTemplate)}. * * @return RestTemplate with the required Jackson MixIns applied */ public static RestTemplate getDefaultDataflowRestTemplate() { return prepareRestTemplate(null); }
@Override public PagedResources<AppRegistrationResource> list() { return list(/* ApplicationType */null); }
/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { this.client.streamOperations().destroy(this.name); }
/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { client.streamOperations().destroy(this.name); }