Package co.cask.cdap.proto

Examples of co.cask.cdap.proto.StreamProperties


                      @PathParam("stream") String stream) throws Exception {
    String accountID = getAuthenticatedAccountId(request);

    if (streamMetaStore.streamExists(accountID, stream)) {
      StreamConfig streamConfig = streamAdmin.getConfig(stream);
      StreamProperties streamProperties = new StreamProperties(streamConfig.getName(), streamConfig.getTTL());
      responder.sendJson(HttpResponseStatus.OK, streamProperties, StreamProperties.class, GSON);
    } else {
      responder.sendStatus(HttpResponseStatus.NOT_FOUND);
    }
  }
View Full Code Here


  @Override
  public void process(String[] args, PrintStream output) throws Exception {
    super.process(args, output);

    String streamId = args[0];
    StreamProperties config = streamClient.getConfig(streamId);

    new AsciiTable<StreamProperties>(
      new String[] { "name", "ttl"},
      Lists.newArrayList(config),
      new RowMaker<StreamProperties>() {
View Full Code Here

TOP

Related Classes of co.cask.cdap.proto.StreamProperties

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.