/** * Destroy the stream from the server. This method invokes the remote server */ public void destroy() { client.streamOperations().destroy(this.name); }
/** * 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() { 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); }
private StreamOperations streamOperations() { return dataFlowShell.getDataFlowOperations().streamOperations(); }
protected StreamOperations streamOperations() { return dataFlowShell.getDataFlowOperations().streamOperations(); } }
protected StreamOperations streamOperations() { return dataFlowShell.getDataFlowOperations().streamOperations(); } }
private StreamOperations streamOperations() { return dataFlowShell.getDataFlowOperations().streamOperations(); }
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); }
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(); }
/** * 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); }
/** * @return Status of the deployed stream */ public String getStatus() { StreamDefinitionResource resource = client.streamOperations() .getStreamDefinition(this.name); return resource.getStatus(); }
/** * 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); }
/** * 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); }
/** * 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); }
break; case STREAM: operationsAvailable = this.dataFlowOperations.streamOperations() != null; break; case TASK:
break; case STREAM: operationsAvailable = this.dataFlowOperations.streamOperations() != null; break; case TASK: