Examples of AppInfo


Examples of com.google.code.facebookapi.schema.AppInfo

  @Test
  public void testAppInfo() throws Exception {
    FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );

    // Stuff application
    AppInfo appInfo = client.application_getPublicInfoByApiKey( stuffAPIKEY_ExistsInDirectory );

    assertNotNull( appInfo.getAppId() );
    assertNotNull( appInfo.getApiKey() );
    assertNotNull( appInfo.getCanvasName() );
    assertNotNull( appInfo.getCompanyName() );
    assertNotNull( appInfo.getIconUrl() );
    assertNotNull( appInfo.getLogoUrl() );
    assertNotNull( appInfo.getDescription() );
    assertTrue( appInfo.getDailyActiveUsers() > -1 );
    assertTrue( appInfo.getWeeklyActiveUsers() > -1 );
    assertTrue( appInfo.getMonthlyActiveUsers() > -1 );

    // Now lookup by application id
    appInfo = client.application_getPublicInfoById( appInfo.getAppId() );

    assertEquals( stuffAPIKEY_ExistsInDirectory, appInfo.getApiKey() );
  }
View Full Code Here

Examples of com.heroku.api.request.app.AppInfo

        assertLogIsReadable(logsResponse);
    }
*/
    @Test(dataProvider = "app", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testAppCommand(App app) throws IOException {
        AppInfo cmd = new AppInfo(app.getName());
        App response = connection.execute(cmd, apiKey);
        assertEquals(response.getName(), app.getName());
    }
View Full Code Here

Examples of org.apache.hadoop.mapreduce.v2.app.webapp.dao.AppInfo

  @GET
  @Path("/info")
  @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
  public AppInfo getAppInfo() {
    return new AppInfo(this.app, this.app.context);
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.webapp.dao.AppInfo

      @QueryParam("user") String userQuery) {
    AppsInfo allApps = new AppsInfo();
    for (Entry<ApplicationId, Application> entry : this.nmContext
        .getApplications().entrySet()) {

      AppInfo appInfo = new AppInfo(entry.getValue());
      if (stateQuery != null && !stateQuery.isEmpty()) {
        ApplicationState.valueOf(stateQuery);
        if (!appInfo.getState().equalsIgnoreCase(stateQuery)) {
          continue;
        }
      }
      if (userQuery != null) {
        if (userQuery.isEmpty()) {
          String msg = "Error: You must specify a non-empty string for the user";
          throw new BadRequestException(msg);
        }
        if (!appInfo.getUser().toString().equals(userQuery)) {
          continue;
        }
      }
      allApps.add(appInfo);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo

      }
      if (checkEnd
          && (rmapp.getFinishTime() < fBegin || rmapp.getFinishTime() > fEnd)) {
        continue;
      }
      AppInfo app = new AppInfo(rmapp, hasAccess(rmapp, hsr));

      allApps.add(app);
      num++;
    }
    return allApps;
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo

    }
    RMApp app = rm.getRMContext().getRMApps().get(id);
    if (app == null) {
      throw new NotFoundException("app with id: " + appId + " not found");
    }
    return new AppInfo(app, hasAccess(app, hsr));
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.webapp.dao.AppInfo

    }
    if (appReport == null) {
      puts("Application not found: " + aid);
      return;
    }
    AppInfo app = new AppInfo(appReport);

    setTitle(join("Application ", aid));

    info("Application Overview")
      ._("User:", app.getUser())
      ._("Name:", app.getName())
      ._("Application Type:", app.getType())
      ._("State:", app.getAppState())
      ._("FinalStatus:", app.getFinalAppStatus())
      ._("Started:", Times.format(app.getStartedTime()))
      ._(
        "Elapsed:",
        StringUtils.formatTime(Times.elapsed(app.getStartedTime(),
          app.getFinishedTime())))
      ._("Tracking URL:",
        app.getTrackingUrl() == null ? "#" : root_url(app.getTrackingUrl()),
        "History")._("Diagnostics:", app.getDiagnosticsInfo());

    html._(InfoBlock.class);

    Collection<ApplicationAttemptReport> attempts;
    try {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

        for (String pathname : jarList) {

            try {
                File jarFile = new File(pathname);

                AppInfo appInfo = configureApplication(jarFile);

                sys.containerSystem.applications.add(appInfo);
            } catch (OpenEJBException alreadyHandled) {
            }
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo


    public AppInfo configureApplication(File jarFile) throws OpenEJBException {
        logger.debug("Beginning load: " + jarFile.getAbsolutePath());

        AppInfo appInfo = null;
        try {
            AppModule appModule = deploymentLoader.load(jarFile);
            appInfo = configureApplication(appModule);
        } catch (OpenEJBException e) {
            String message = messages.format("conf.0004", jarFile.getAbsolutePath(), e.getMessage());
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

    }

    public EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException {
        AppModule appModule = new AppModule(ejbModule.getClassLoader(), ejbModule.getJarLocation());
        appModule.getEjbModules().add(ejbModule);
        AppInfo appInfo = configureApplication(appModule);
        return appInfo.ejbJars.get(0);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.