获取数据流java - 使用java stream api

时间:2015-05-31 14:48:40

标签: java data-stream

我得到了一个使用数据流和java的作业。 我需要做的是编写一个连接到给定数据流的Java类和它的API。

URI:http://<hostname>/ws/DataStream

HTTP operations supported:
GET: query one or more data streams

Elements include:

cstId - customer ID of customer that owns the data stream
streamId - the stream ID
forwardTo - comma separated list of streams to replicate data points to

GET

GET用于检索数据流列表,或按ID ID

检索特定流
Example #1:
To get a list of all data streams:
GET ws/DataStream
Returns a list of data streams.
Example #2:
To get information about a specific data stream using its stream ID:
GET ws/DataStream/{streamId}

我理解它是如何运作的,

  1. 如何创建一个获取此值的类?

  2. 我需要使用哪种物品来存储它们

  3. 如何将它们插入数据库?

0 个答案:

没有答案