Examples of load()


Examples of com.caucho.quercus.env.SessionArrayValue.load()

  public void load(ObjectInputStream in, Object obj)
    throws IOException
  {
    SessionArrayValue session = (SessionArrayValue) obj;

    session.load(null, in);
  }

  /**
   * Checks if the session is empty.
   */
 
View Full Code Here

Examples of com.cetsoft.caudit.loader.AuditContextLoader.load()

  /**
   * Inits the audit context.
   */
  private static void init() {
    AuditContextLoader loader = new AuditContextLoader(auditStore);
    loader.load();
  }

  /**
   * Maps the audit.
   *
 
View Full Code Here

Examples of com.clarkparsia.modularity.ModuleExtractor.load()

    Taxonomy<OWLClass> taxonomy = null;
   
    ZipInputStream zipInputStream = new ZipInputStream( inputStream );
   
    extractor = ModuleExtractorFactory.createModuleExtractor();
    extractor.load( zipInputStream );
   
    ZipEntry currentEntry = zipInputStream.getNextEntry();
   
    if( !( TAXONOMY_FILE_NAME.equals( currentEntry.getName() ) ) ) {
      throw new IOException ( String.format( "Unexpected entry (%s) in ZipInputStream. Expected %s", currentEntry.getName(), TAXONOMY_FILE_NAME ) );
View Full Code Here

Examples of com.cloud.storage.template.TemplateLocation.load()

        List<String> publicTmplts = listTemplates(templateDir);
        for (String tmplt : publicTmplts) {
            String path = tmplt.substring(0, tmplt.lastIndexOf(File.separator));
            TemplateLocation loc = new TemplateLocation(_storage, path);
            try {
                if (!loc.load()) {
                    s_logger.warn("Post download installation was not completed for " + path);
                    // loc.purge();
                    _storage.cleanup(path, templateDir);
                    continue;
                }
View Full Code Here

Examples of com.cloudera.cdk.data.DatasetRepository.load()

    if (!initialized) {
      // initialize here rather than in activateOptions to avoid initialization
      // cycle in Configuration and log4j
      try {
        DatasetRepository repo = DatasetRepositories.open(datasetRepositoryUri);
        Dataset dataset = repo.load(datasetName);
        if (dataset.getDescriptor().isPartitioned()) {
          partitionStrategy = dataset.getDescriptor().getPartitionStrategy();
        }
        URL schemaUrl = dataset.getDescriptor().getSchemaUrl();
        if (schemaUrl != null) {
View Full Code Here

Examples of com.cloudera.cdk.data.RandomAccessDatasetRepository.load()

    // Construct an HBase dataset repository using the local HBase database
    RandomAccessDatasetRepository repo =
        DatasetRepositories.openRandomAccess("repo:hbase:localhost.localdomain");

    // Load the users dataset
    RandomAccessDataset<User> users = repo.load("users");

    // Get an accessor for the dataset and write some users to it
    users.put(user("bill", "green"));
    users.put(user("alice", "blue"));
    users.put(user("cuthbert", "pink"));
View Full Code Here

Examples of com.cloudera.cdk.data.hbase.HBaseDatasetRepository.load()

    repo.create(tableName + ".SubEntity2", new DatasetDescriptor.Builder()
        .schema(SubEntity2.SCHEMA$)
        .build());

    // create composite dataset
    RandomAccessDataset<Map<String, SpecificRecord>> ds = repo.load(tableName + ".SubEntity1.SubEntity2");

    // Construct entities
    SubEntity1 subEntity1 = SubEntity1.newBuilder().setPart1("1").setPart2("1")
        .setField1("field1_1").setField2("field1_2").build();
    SubEntity2 subEntity2 = SubEntity2.newBuilder().setPart1("1").setPart2("1")
View Full Code Here

Examples of com.cloudera.flume.reporter.builder.MultiGrepReporterBuilder.load()

        String fname = argv[1];
        MultiGrepReporterBuilder mgrb = new MultiGrepReporterBuilder(name,
            fname);
        Collection<MultiGrepReporterSink<String>> sinks;
        try {
          sinks = mgrb.load();
        } catch (IOException e) {
          throw new IllegalArgumentException(
              "Failed to create multigrep report named " + name
                  + " with spec from file " + fname + ": " + e);
        }
View Full Code Here

Examples of com.cloudera.flume.reporter.builder.SimpleRegexReporterBuilder.load()

  @Test
  public void testLoad() throws IOException, InterruptedException {
    SimpleRegexReporterBuilder b = new SimpleRegexReporterBuilder(
        APACHE_REGEXES);

    Collection<RegexGroupHistogramSink> sinks = b.load();
    MultiReporter mr = new MultiReporter("apache_sinks", sinks);
    mr.open();
    mr.append(new EventImpl(sample.getBytes()));

    for (EventSink r : sinks) {
View Full Code Here

Examples of com.commander4j.sys.JMenuOption.load()

      stmt.setString(2, Common.userList.getUser(getSessionID()).getUserId());
      rs = stmt.executeQuery();
      while (rs.next())
      {
        JMenuOption mo = new JMenuOption(getHostID(), getSessionID());
        mo.load(rs);
        icon = getModuleIcon(rs.getString("icon_filename"), rs.getString("module_type"));
        JDBListData mld = new JDBListData(icon, 0, true, mo);
        moduleList.addLast(mld);
      }
      rs.close();
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.