Examples of MongoRepository


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

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

    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
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.