Package co.cask.cdap.proto

Examples of co.cask.cdap.proto.ProgramLiveInfo


   * @param runnableId
   * @return
   */
  private int getRunnableCount(String accountId, String appId, ProgramType programType,
                               String programId, String runnableId) {
    ProgramLiveInfo info = runtimeService.getLiveInfo(Id.Program.from(accountId, appId, programId), programType);
    int count = 0;
    if (info instanceof NotRunningProgramLiveInfo) {
      return count;
    } else if (info instanceof Containers) {
      Containers containers = (Containers) info;
View Full Code Here


    }
  }

  private int getRunnableCount(String accountId, String appId, String serviceName, String runnable) throws Exception {
    Id.Program programID = Id.Program.from(accountId, appId, serviceName);
    ProgramLiveInfo info = runtimeService.getLiveInfo(programID, ProgramType.SERVICE);
    int count = 0;
    if (info instanceof NotRunningProgramLiveInfo) {
      return count;
    } else if (info instanceof Containers) {
      Containers containers = (Containers) info;
View Full Code Here

TOP

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

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.