Dis_00200_da
isframe Information System architecture Platform [Email protected]
download software Documentation: HTTP://PAN.BAIDU.COM/S/1KVBOGCVIv. DA's understanding of the article
Instance Server Environment Preparation
Install the instance server node to build 4 Isframe service nodes for an instance. They are WNODE0, WNODE1, WNODE2, WNODE3, respectively.
Configure the instance server node to configure the connectivity relationship between the 4 nodes, and the associated database. The configuration is complete with a tree (star-shaped) structure.
The client follows the API library with the various languages provided by the app Isframe, as configured if the app API is developed.
At the same time Isframe provides the command interface, the developer can apply the command line to connect the Isframe service, perform da operation. To apply a command line, you need to configure a client to define the server or database server to which you want to connect. Reduce the input parameters of the command line.
File server 4.1. download file
The WNODE0 service specifies a directory dir,client0 access to the WNODE0 server, which downloads a single file.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/08/C4/wKiom1nm6SbyVcveAACPOOGLuGU301.png "alt="./pic/ Dis/da_exa/daexa0001.png "title=" Daexa0001.png "/>
4.2. Download the Catalogue
The WNODE0 service specifies a directory dir,client0 access the WNODE0 server, and downloads the dir directory or the files in its subdirectories.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/08/CA/wKiom1nnGGfi-22JAACTaRPIH0I646.png "alt="./pic/ Dis/da_exa/daexa0002.png "title=" Daexa0002.png "/>
4.3. Uploading Files
The WNODE0 service specifies a directory dir,client0 access to the WNODE0 server, uploading a single file to the Dir directory.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/08/CA/wKiom1nnGHrDGKyhAACO1vrZK1w696.png "alt="./pic/ Dis/da_exa/daexa0003.png "title=" Daexa0003.png "/>
4.4. Upload Directory
The WNODE0 service specifies a directory dir,client0 access to the WNODE0 server, uploading files from the local directory to the dir directory.
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/08/CA/wKiom1nnGI7zg4VRAACSb330I3A755.png-wh_500x0-wm_ 3-wmp_4-s_949312597.png "alt="./pic/dis/da_exa/daexa0004.png "title=" Daexa0004.png "/>
4.5. Querying the file list
The WNODE0 service specifies a directory dir,client0 access to the WNODE0 server, querying the DIR directory or its subdirectories for a list of files, equivalent to executing the dir command or the LS command in the server's specified directory.
4.6. Write Server files
The WNODE0 service specifies a directory dir,client0 accesses the WNODE0 server and writes the command input to a file under Dir.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/A7/79/wKioL1nnFh7Q6ciBAACNfj-R8_g637.png "alt="./pic/ Dis/da_exa/daexa0005.png "title=" Daexa0005.png "/>
4.7. Read the server file
The WNODE0 service specifies a directory dir,client0 access to the WNODE0 server, reading the contents of the specified file under dir.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/A7/79/wKioL1nnFgnwtq-_AACOfMLqjdo675.png "alt="./pic/ Dis/da_exa/daexa0006.png "title=" Daexa0006.png "/>
4.8. Delete server files
The WNODE0 service specifies a directory dir,client0 access WNODE0 server, which sends instructions to delete the specified file under dir.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/08/CA/wKiom1nnGPiBYiqZAACUDANwGG8587.png "alt="./pic/ Dis/da_exa/daexa0007.png "title=" Daexa0007.png "/>
General operations
The WNODE0 service defines the operation, CLIENT0 accesses the WNODE0 server, sends "action statements" and "Input parameters", reads the output parameters of the WNODE0 and the result set.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/08/CA/wKiom1nnGSuREEOVAACUDANwGG8319.png "alt="./pic/ Dis/da_exa/daexa0008.png "title=" Daexa0007.png "/>
4.9. Flexible SQL
The client sends commands to the Isframe da Service, Isframe da performs database operations according to the command, and the client can provide flexible SQL statements.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/A7/79/wKioL1nnFrSwVvf5AACueygQSgY762.png "alt="./pic/ Dis/da_exa/daexa0008.png "title=" Daexa0009.png "/>
4.10. Da output similar to database stored procedures
This example shows an example of a database stored procedure.
The WNODE0 service connects to the database server, reports the parameters entered by the client, passes it to the stored procedure, and passes the "output parameter" and "DataSet result set" of the stored procedure to the client.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/08/CA/wKiom1nnGZuB0WaPAACTgyZ6hsg495.png "alt="./pic/ Dis/da_exa/daexa0008.png "title=" Daexa0008.png "/>
4.11. Execute the Script
Isframe da as an application server, can be configured to invoke database statements, database stored procedures, operating system executable programs and scripts. This example is a Windows program that demonstrates a DOS bat script that can be flexibly implemented if it is a UNIX variety of shell scripts
In this case, the client sends two numbers to the server, and the server sums up the two numbers and returns the results. A simple example shows the service capabilities of DA
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A7/79/wKioL1nnFvmhnMrhAACbMIJcUDE279.png "alt="./pic/ Dis/da_exa/daexa0010.png "title=" Daexa0010.png "/>
4.12. Examples of cargo applications
About Isframe da, the above example shows some of his features, in business applications, DA is characterized by "concurrency" and "app navigation".
In the case of massive customer connection, DA's concurrent queue mechanism effectively improves the customer experience and system performance;
With the DA "Application navigation" function, multiple service nodes are combined into a business as a whole in multiple data center collaborative operations.
For example, a "business" has three branch warehouses, Beijing warehouse, Zhengzhou warehouse, Wuhan Warehouse. Beijing's "Customers" to the "Beijing Warehouse" to launch the purchase application, "Beijing Warehouse" in stock, by the "Beijing Warehouse" delivery.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/A7/79/wKioL1nnFwnCSKTxAAFckM_zG7A775.png "alt="./pic/ Dis/da_exa/daexa0011.png "title=" Daexa0011.png "/>
"Beijing Warehouse" is out of stock, to the near "Zhengzhou warehouse" forwarding Application, "Zhengzhou Warehouse" has goods, from "Zhengzhou" delivery.
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/08/CA/wKiom1nnGdOCf7QlAAF506l1B-s247.png "alt="./pic/ Dis/da_exa/daexa0012.png "title=" Daexa0012.png "/>
If "Zhengzhou Warehouse" is also out of stock, to "Wuhan Warehouse" forwarding Application, "Wuhan Warehouse" has goods, from "Wuhan" delivery.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/A7/79/wKioL1nnFyuS5E5bAAGX7akqkJ0479.png "alt="./pic/ Dis/da_exa/daexa0013.png "title=" Daexa0013.png "/>
If "Wuhan Warehouse" is also out of stock, to customers reply "out of stock".
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/08/CA/wKiom1nnGfPCxxcDAAGVt4Ab8yA598.png "alt="./pic/ Dis/da_exa/daexa0014.png "title=" Daexa0014.png "/>
In the process, the client sends a "request" and receives a "reply". The warehouse is completed by Isframe application navigation. The customer targets the entire merchant, not the many shipping nodes.
At the same time, isframe can be applied to build a settlement process between three branch warehouses.
API Programming 4.13. JAVA implementation of cargo application examples
DA can complete the invocation of various programs, the operation of various databases, the most prominent feature is the application of navigation/multipoint collaboration.
The source power to complete a series of operations is for the client to send instructions and input parameters, and receive the returned results, for this reason, Isframe provides the interface of the C + +, java,c# multiple languages.
The API interface is used to develop client programs when using the Isf_cmd.exe command line to complete complex business operations.
The background environment for this example is based on the command line cargo requisition instance, and if the instance is not tested, the environment and preparation for the instance is deployed, and this example discusses only the Java Development section.
related content : What is Isframe? , chapter catalogs, test environments, asynchronous flow DC,
Timed Tasks SCHEDULE, Isframe Toolbox
isframe Information System architecture platform Dis_00200_da
Application server, you can invoke the script, you can manipulate the database, you can process the file, can be remotely coordinated