主要内容

Enterprise Deployment withMATLABProduction Server

Run MATLAB®代码on a server and access it using various clients

MATLAB Production Server™lets you run MATLAB functions on a server and access them via client applications. You create applications in MATLAB, package them using theProduction Server Compilerapp inMATLAB编译器SDK™, and deploy them to theMATLAB Production Server. Deployed packages can be accessed by client applications written in Java®, .NET, Python®, C and C++ using client-specific libraries or through a HTTP/HTTPS endpoint using the RESTful API.

有关如何使用Restful API,Java,.net,Python,C和C ++编写客户端应用程序的信息,请参见Client Programming(MATLAB Production Server).

Apps

Production Server Compiler PackageMATLAB部署程序MATLABProduction Server

Functions

expand all

编译器 创建一个用于部署的档案MATLABProduction Server
compiler.build.ProductionServerArchiveOptions 构建可部署档案的选项
compiler.build.excelClientForProductionServer 创造MicrosoftExcel加载项MATLABProduction Server
compiler.build.ExcelClientForProductionServerOptions Options for buildingExcel加载
compiler.build.Results Compiler build results object
productionServerCompiler Test, build and package functions for use withMATLABProduction Server
mps.json.encode ConvertMATLAB数据to JSON text usingMATLABProduction ServerJSON模式
mps.json.decode Convert a character vector or string inMATLABProduction ServerJSON模式MATLAB数据
MPS.JSON.CODEREQUEST ConvertMATLAB数据in a server request to JSON text usingMATLABProduction ServerJSON模式
mps.json.decoderesponse Convert JSON text from a server response toMATLAB数据

Controller

mps.cache.control 创建持久性服务控制器对象
start Start a persistence service and attach it a toMATLABsession
stop 停止持久服务并将其从MATLABsession
restart Restart a persistence service and attach it to aMATLABsession
attach Connect aMATLABsession to a persistence service that is already running
分离 DisconnectMATLABsession from a persistence service that is already running
ping Test whether the persistence service is reachable
version Version number for persistence provider

Cache

mps.cache.connect 连接到缓存,或创建缓存(如果不存在)
字节 返回存储在每个密钥上的值使用的存储的字节数
清除 Remove all keys and values from cache
flush 将所有本地修改的密钥写入持久性服务
get 从缓存中获取键的值
GETP Get the value of a public cache property
isKey Determine if the cache contains specified keys
钥匙 Get all keys from cache
length Number of key-value pairs in the data cache
purge Flush all local data to the persistence service
put Write key-value pairs to cache
remove Remove keys from cache
retain 从本地存储远程键或返回本地存储的键

Mutex

MPS.Sync.Mutex 创造a persistence service mutex
acquire Acquire advisory lock on persistence service mutex
自己的 Check ownership of advisory lock on a persistence service mutex object
release Release advisory lock on persistence service mutex

Objects

expand all

mps.cache.controller Manage the life cycle of a persistence service in aMATLABtesting environment
mps.cache.DataCache Represent cache concept inMATLAB代码
mps.sync.TimedMATFileMutex Represent a MAT-file persistence service mutex
mps.sync.TimedRedisMutex Represent aRedispersistence service mutex

Topics

可部署的存档Creation

创造可部署的存档for MATLAB Production Server

了解如何将MATLAB函数打包成可部署的存档MATLAB Production Server.

Client Prototypes

使用mwhttpclient类创建Java客户端

Learn how to call a MATLAB function deployed toMATLAB Production Serverfrom a Java application.

创造a C# Client Using MWHttpClient

Call a MATLAB function deployed toMATLAB Production Serverfrom a C# application.

创造a Python Client

Learn how to call a MATLAB function deployed toMATLAB Production Server来自Python应用程序。

创造a C++ Client

Learn how to call a MATLAB function deployed toMATLAB Production Server从C ++应用程序。

测试

Test Client Data Integration Against MATLAB

测试客户对MATLAB使用的集成代码提供了用于查看传递到MATLAB函数的数据的工具

Excel Add-Ins

创造and Install a Deployable Archive with Excel Integration For MATLAB Production Server

Learn how to create a deployable archive with Excel®integration forMATLAB Production Serverusing a MATLAB function.