Package com.kurento.kmf.repository.internal.repoimpl.mongo

Examples of com.kurento.kmf.repository.internal.repoimpl.mongo.MongoRepository


    Repository repository = getRepository();

    if (repository instanceof MongoRepository) {

      MongoRepository mongoRepository = (MongoRepository) repository;

      GridFS gridFS = mongoRepository.getGridFS();

      GridFSInputFile file = gridFS.createFile(new File(
          "test-files/sample.txt"));

      file.setId("sample.txt");
View Full Code Here


    if (repositoryApiConfiguration().getRepositoryType().equals(
        "filesystem")) {
      return new FileSystemRepository();
    } else if (repositoryApiConfiguration().getRepositoryType().equals(
        "mongodb")) {
      return new MongoRepository();
    } else {
      throw new KurentoException(
          "Unrecognized repository type. Must be filesystem or mongodb");
    }
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.repository.internal.repoimpl.mongo.MongoRepository

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.