[](http://www.apache.org/licenses/LICENSE-2.0)
[](http://doc-kurento.readthedocs.org/en/latest/)
[](https://hub.docker.com/r/fiware/stream-oriented-kurento/)
[](http://stackoverflow.com/questions/tagged/kurento)
[![][KurentoImage]][Kurento]
Copyright © 2013-2016 [Kurento]. Licensed under [Apache 2.0 License].
kurento-repository-server
=========================
The server module of Kurento Repository is a [Spring Boot][SpringBoot]
application which exposes the configured media repository through an
easy-to-use Http REST API.
This module can also be integrated into existing applications instead
of a standalone execution. The application will have access to a Java
API which wraps around the repository internal library.
There is a Kurento Java [tutorial application][helloworld-repository] that
employs a running instance of this server to record and play media over HTTP
using the capabilities of the Kurento Media Server.
Table of Contents
-----------------
- [Running the server](#running-the-server)
- [Dependencies](#dependencies)
- [Binaries](#binaries)
- [Configuration](#configuration)
- [Logging configuration](#logging-configuration)
- [Execution](#execution)
- [Run at user-level](#run-at-user-level)
- [Run as daemon](#run-as-daemon)
- [Version upgrade](#version-upgrade)
- [Installation over MongoDB](#installation-over-mongodb)
- [Http REST API](#http-rest-api)
- [Create repository item](#create-repository-item)
- [Remove repository item](#remove-repository-item)
- [Get repository item read endpoint](#get-repository-item-read-endpoint)
- [Find repository items by metadata](#find-repository-items-by-metadata)
- [Find repository items by metadata regex](#find-repository-items-by-metadata-regex)
- [Get the metadata of a repository item](#get-the-metadata-of-a-repository-item)
- [Update the metadata of a repository item](#update-the-metadata-of-a-repository-item)
- [Repository Rest Java API](#repository-rest-java-api)
- [What is Kurento](#what-is-kurento)
Running the server
------------------
### Dependencies
* Ubuntu 14.04 LTS
* [Java JDK][Java] version 7 or 8
* [MongoDB][mongo] (we provide an install [guide](#installation-over-mongodb))
* Kurento Media Server or connection with a running instance
(to install follow the [official guide][kurento-install])
### Binaries
To build the installation binaries from the source code you'll need
to have installed on your machine [Git][Git], [Java JDK][Java]
and [Maven][Maven].
Clone the parent project, `kurento-java` from its
[GitHub Repository][GitHub Kurento Java].
```
$ git clone [email protected]:Kurento/kurento-java.git
```
Then build the `kurento-repository-server` project together
with its required modules:
```
$ cd kurento-java
$ mvn clean package -DskipTests -Pdefault -am \
-pl kurento-repository/kurento-repository-server
```
Now unzip the generated install binaries (where `x.y.z` is the current
version and could include the `-SNAPSHOT` suffix):
```
$ cd kurento-repository/kurento-repository-server/target
$ unzip kurento-repository-server-x.y.z.zip
```
### Configuration
The configuration file, `kurento-repo.conf.json` is located in the `config`
folder inside the uncompressed installation binaries. When installing the
repository as a system service, the configuration files will be located
after the installation inside `/etc/kurento`.
```
$ cd kurento-repository-server-x.y.z
$ vim config/kurento-repo.conf.json
```
The default contents of the configuration file:
```json
{
"repository": {
"port": 7676,
"hostname": "127.0.0.1",
//mongodb or filesystem
"type": "mongodb",
"mongodb": {
"dbName": "kurento",
"gridName": "kfs",
"urlConn": "mongodb://localhost"
},
"filesystem": {
"folder": "/tmp/repository"
}
}
}
```
These properties and their values will configure the repository application.
* `port` and `hostname` are where the HTTP repository servlet will be
listening for incoming connections (REST API).
* `type` indicates the storage type. The repository that stores media served
by KMS can be backed by GridFS on MongoDB or it can use file storage
directly on the system’s disks (regular filesystem).
* `mongodb` configuration:
* `dbname` is the database name
* `gridName` is the name of the gridfs collection used for the repository
* `urlConn` is the connection to the Mongo database
* `filesystem` configuration:
* `folder` is a local path to be used as media storage
#### Logging configuration
The logging configuration is specified by the file
`kurento-repo-log4j.properties`, also found in the `config` folder.
```
$ cd kurento-repository-server-x.y.z
$ vim config/kurento-repo-log4j.properties
```
In it, the location of the server's output log file can be set up, the default
location will be `kurento-repository-server-x.y.z/logs/` (or
`/var/log/kurento/` for system-wide installations).
To change it, replace the `${kurento-repo.log.file}` variable for an
absolute path on your system:
```
log4j.appender.file.File=${kurento-repo.log.file}
```
### Execution
There are two options for running the server:
* user-level execution - doesn’t need additional installation steps, can be
done right after uncompressing the installer
* system-level execution - requires installation of the repository
application as a system service, which enables automatic startup after
system reboots
In both cases, as the application uses the [Spring Boot][SpringBoot]
framework, it executes inside an embedded Tomcat container instance, so
there’s no need for extra deployment actions (like using a third-party
servlet container). If required, the project's build configuration could
be modified in order to generate a *WAR* instead of a *JAR*.
#### Run at user-level
After having [configured](#configuration) the server instance just execute the start
script:
```
$ cd kurento-repository-server-x.y.z
$ ./bin/start.sh
```
#### Run as daemon
First install the repository after having built and uncompressed the generating
binaries. **sudo** privileges are required to install it as a service:
```
$ cd kurento-repository-server-x.y.z
$ sudo ./bin/install.sh
```
The service **kurento-repo** will be automatically started.
Now, you can configure the repository as stated in the
[previous section](#configuration) and restart the service.
```
$ sudo service kurento-repo {start|stop|status|restart|reload}
```
### Version upgrade
To update to a newer version, it suffices to follow once again the
installation procedures.
### Installation over MongoDB
For the sake of testing *kurento-repository* on Ubuntu (*14.04 LTS 64 bits*),
the default installation of MongoDB is enough.
Execute the following commands (from MongoDB [webpage][mongo-install]):
```
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo "deb http://repo.mongodb.org/apt/ubuntu \
"$(lsb_release -sc)"/mongodb-org/3.0 multiverse" \
| sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
```
Http REST API
-------------
Primitives provided by the repository server, can be used to control items from
the respository (*add*, *delete*, *search*, *update*, *get download URL*).
### Create repository item
**Description**
Creates a new repository item with the provided metadata and its associated
recorder endpoint.
**Request method and URL**
```
POST /repo/item
```
**Request Content-Type**
```
application/json
```
**Request parameters**
Pairs of key-value Strin
没有合适的资源?快使用搜索试试~ 我知道了~
kurento-java.rar

共719个文件
java:519个
xml:29个
md:22个

需积分: 50 7 下载量 160 浏览量
2020-03-18
17:20:33
上传
评论
收藏 1.12MB RAR 举报
温馨提示
官方代码kurento-java中的kurento repository启动后,不能上传、下载。官方代码没有完善。 代码中有说明 // gridFS = new GridFS(mongoTemplate.getDb()); // TODO: refactor GridFS API to SpringBoot 2 修改后,可以了,附上代码
资源推荐
资源详情
资源评论




















收起资源包目录





































































































共 719 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论


zpz_123123
- 粉丝: 6
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 海洋声学基于射线声学理论的水下声波传播模拟:射线追踪算法实现与特性分析(含详细代码及解释)
- 大数据背景下小学高年级英语阅读能力的培养策略.docx
- 单片机应用技术思考题及习题.doc
- 【医疗健康领域】基于体检数据的结直肠癌风险预测模型构建与优化:灰龟公司项目复现及代码详解(含详细代码及解释)
- 运用大数据手段全面推进农牧业供给侧结构性改革.docx
- 《算法框图的基本结构及设计》参考.ppt
- 《现代通信技术》实验研究报告二.docx
- 高三生物二轮复习专题练习3:基因工程.doc
- 智慧城市建设规划方案.docx
- 网络经济的困境与突围.docx
- 工程项目管理方法的探索与实践.docx
- 计算机网络基础知识培训讲座.ppt
- 任务阅读器软件开发.ppt
- 物联网基础架构设备接入与大数据分析.ppt
- NutzWk-Java资源
- 贵州大数据产业发展战略理解和实施建议.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
