Method and system of processing a data stream
First Claim
1. A method of processing a data stream(DS), comprising:
- selecting a Stream Source Description Language (SSDL) file and a Service Unit (SU), the SSDL file and the SU being assigned by a Service Unit Activation Language (SUAL) file;
transmitting a query written by the selected SUAL file to a corresponding stream provider based on a stream provider address written by selected SSDL file;
preparing a buffer based on a schema information about a result of the transmitted query;
generating an instance of the selected SU;
intializing the selected SU into an execution mode assigned by the SUAL file;
updating, in real time, data stored in the prepared buffer by using the DS provided by the stream provider; and
processing the data stored in the buffer according to the execution mode in response to a user request to provide a result of the user request to a user by a service operator (SO) module,wherein the SUAL file comprises the SSDL file, the SU, the query and the execution mode,the execution mode comprises a push mode and a pull mode,one instance of the selected SU per user request is generated and preserved during a requested time duration in the push mode, anda predetermined number of the instances of the selected SU is generated and managed in an instance pool in the pull mode,wherein the SO module comprises;
a user request handler (URH) that registers the user request and transmits the result of the user request to the user;
a scheduler that controls a processing schedule of the user request registered in the URH in response to a resource usage state;
a service unit instance manager (SUIM) that processes the user request by executing the SUI by processing the SUI in response to the processing schedule from the scheduler according to the execution mode and provides the result of the user request to the URH; and
a runtime moniter (RM) that monitors the resource usage state of each component and the SUI that is currently being executed, and provides the resource usage state to the scheduler,wherein the SUIM generates one SUI per user request and the generated SUI becomes extinct after a requested time duration when the execution mode corresponds to the push mode.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems of processing a data stream are disclosed. A developer may develop a service only by programming a Service Unit (SU) including a service logic (SL) and including a Service Unit Description Language (SUDL) file, so that the developer may not need to program complicated stream processing code, such as stream source connection code, network input/output (I/O) code, and buffering code. In addition, the stream source connected dynamically to the service and a service execution mode (such as push and pull modes) may be converted by simply changing setting files based on the service model. The system includes modules for managing and processing the stream in reality, such as stream source connection modules, network I/O processing modules, and stream buffering modules, the modules operating the developed program through the service model.
-
Citations
15 Claims
-
1. A method of processing a data stream(DS), comprising:
-
selecting a Stream Source Description Language (SSDL) file and a Service Unit (SU), the SSDL file and the SU being assigned by a Service Unit Activation Language (SUAL) file; transmitting a query written by the selected SUAL file to a corresponding stream provider based on a stream provider address written by selected SSDL file; preparing a buffer based on a schema information about a result of the transmitted query; generating an instance of the selected SU; intializing the selected SU into an execution mode assigned by the SUAL file; updating, in real time, data stored in the prepared buffer by using the DS provided by the stream provider; and processing the data stored in the buffer according to the execution mode in response to a user request to provide a result of the user request to a user by a service operator (SO) module, wherein the SUAL file comprises the SSDL file, the SU, the query and the execution mode, the execution mode comprises a push mode and a pull mode, one instance of the selected SU per user request is generated and preserved during a requested time duration in the push mode, and a predetermined number of the instances of the selected SU is generated and managed in an instance pool in the pull mode, wherein the SO module comprises; a user request handler (URH) that registers the user request and transmits the result of the user request to the user; a scheduler that controls a processing schedule of the user request registered in the URH in response to a resource usage state; a service unit instance manager (SUIM) that processes the user request by executing the SUI by processing the SUI in response to the processing schedule from the scheduler according to the execution mode and provides the result of the user request to the URH; and a runtime moniter (RM) that monitors the resource usage state of each component and the SUI that is currently being executed, and provides the resource usage state to the scheduler, wherein the SUIM generates one SUI per user request and the generated SUI becomes extinct after a requested time duration when the execution mode corresponds to the push mode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer middleware system of processing a data stream (DS) and transmitting the DS from a stream provider to a user terminal, comprising;
-
a memory; a service deployer (SD) module configured to register a Service Unit (SU) developed by a serviced developer and an Serviced Unit Activation Language (SUAL) file written by a service provider, and configured to generate a query, a query result schema and execution mode information, the query result schema and the execution mode information being assigned by the registered SUAL file; a stream handler (SH) module configured to transmit the query from the SD module to the stream provider and configured to update, in real time, data stored in a buffer in response to the query result schema by using the DS provided by the stream provider; and a service operator (SO) module configured to receive a user request, configured to process the data stored in the buffer by executing a service unit instance (SUI) in response to the user request according to the execution mode information from the SD module, and configured to provide a result of the user request to the user, wherein the SUAL file comprises a Service Source Description Language (SSDL) file, the SU, the query and the execution mode, the execution mode comprises a push mode and a pull mode, one SUI per user request is generated and preserved during a requested time duration in the push mode, and a predetermined number of the SUIs is generated and managed in an instance pool in the pull mode, wherein the SO module comprises; a user request handler (URH) that registers the user request and transmits the result of the user request to the user; a scheduler that controls a processing schedule of the user request registered in the URH in response to a resource usage state; a service unit instance manager (SUIM) that processes the user request by executing the SUI by processing the SUI in response to the processing schedule from the scheduler according to the execution mode and provides the result of the user request to the URH; and a runtime monitor (RM) that monitors the resource usage state of each component and the SUI that is currently being executed, and provides the resource usage state to the scheduler, wherein the SUIM generates one SUI per user request and the generated SUI becomes extinct after a requested time duration when the execution mode corresponds to the push mode. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A computer-readable storage medium storing a program that performs a method of processing a data stream (DS), the method comprising:
-
selecting an Stream Source Description Language (SSDL) file and a Service Unit (SU), the SSDL file and the SU being assigned by an Service Unit Activation Language (SUAL) file; transmitting a query written by the selected SUAL file to a corresponding stream provider based on a stream provider address written by the selected SSDL file; preparing a buffer according to schema information about a result of the transmitted query; generating an instance of the selected SU; initializing the selected SU into an execution mode assigned by the SUAL file; updating, in real time, data stored in the prepared buffer by using the DS provided by the stream provider; and processing the data stored in the buffer based on the execution mode in response to a user request to provide a result of the user request to a user by a service operator (SO) module, wherein the SUAL file comprises a Service Source Description Language (SDDL) file, the SU, the query and the execution mode, the execution mode comprises a push mode and a pull mode, one instance of the selected SU per user request is generated and preserved during a requested time duration in the push mode, and a predetermined number of the instances of the selected SU is generated and managed in an instance pool in the pull mode, wherein the SO module comprises; a user request handler (URH) that registers the user request and transmits the result of the user request to the user; a scheduler that controls a processing schedule of the user request registered in the URH in response to a resource usage state; a service unit instance manager (SUIM) that processes the user request by executing the SUI by processing the SUI in response to the processing schedule from the scheduler according to the execution mode and provides the result of the user request to the URH; and a runtime monitor (RM) that monitors the resource usage state of each component and the SUI that is currently being executed, and provides the resource usage state to the scheduler, wherein the SUIM generates one SUI per user request and the generated SUI becomes extinct after a requested time duration when the execution mode corresponds to the push mode.
-
Specification