Package org.springframework.xd.rest.domain

Examples of org.springframework.xd.rest.domain.StreamDefinitionResource


    return createResourceWithId(entity.getName(), entity);
  }

  @Override
  protected StreamDefinitionResource instantiateResource(StreamDefinition entity) {
    return new StreamDefinitionResource(entity.getName(), entity.getDefinition());
  }
View Full Code Here


    boolean result = false;
    SpringXDTemplate xdTemplate = createSpringXDTemplate(adminServer);
    PagedResources<StreamDefinitionResource> resources = xdTemplate.streamOperations().list();
    Iterator<StreamDefinitionResource> resourceIter = resources.iterator();
    while (resourceIter.hasNext()) {
      StreamDefinitionResource resource = resourceIter.next();
      if (streamName.equals(resource.getName())) {
        if ("deployed".equals(resource.getStatus())) {
          result = true;
          break;
        }
        else {
          result = false;
View Full Code Here

    MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();
    values.add("name", name);
    values.add("definition", defintion);
    values.add("deploy", Boolean.toString(deploy));

    StreamDefinitionResource stream = restTemplate.postForObject(resources.get("streams/definitions").expand(),
        values,
        StreamDefinitionResource.class);
    return stream;
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.rest.domain.StreamDefinitionResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.