このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
Java クライアント プログラミング
Java® でのクライアント プログラムの作成
MATLAB® Production Server™ Java クライアント API を使用すると、ネイティブな Java データを使用してリモート サーバーにデプロイされた MATLAB 関数を評価できます。
オンプレミスの MATLAB Production Server インストールでは、クライアント API は
にあります。ここで、$MPS_INSTALL
/client
は MATLAB Production Server のインストール場所です。クライアント API は、MATLAB Production Server Client Libraries でダウンロードすることもできます。また、Java クライアント API は Maven™ リポジトリ (https://mvnrepository.com/artifact/com.mathworks.prodserver/mps_java_client) にホストされます。$MPS_INSTALL
トピック
Java クライアントのプログラミングの基礎
- MATLAB Production Server Java Client Basics
Learn how to call a MATLAB function deployed to MATLAB Production Server from a Java application.
静的プロキシと動的プロキシを使用したプログラミング
- MWHttpClient クラスを使用した MATLAB Production Server の Java クライアントの作成
インターフェイスを定義し、静的プロキシ オブジェクトをインスタンス化してから、デプロイされた関数を呼び出す。 - Configure Client-Server Connection
Extend theMWHttpClientDefaultConfig
class and override its methods to modify the default configuration. - Invoke MATLAB Functions Dynamically
Invoke MATLAB functions using a function name and argument list. - Bond Pricing Tool for Java Client
This example shows an application that calculates a bond price from a simple formula. - Java Client Coding Best Practices
When you write Java interfaces to invoke MATLAB code, remember these considerations:
データ シリアル化のための RESTful API およびプロトコル バッファーを使用したプログラミング
- Asynchronous RESTful Requests Using Protocol Buffers in the Java Client
Example that shows how to make asynchronous RESTful requests using protocol buffers in the Java client. - Synchronous RESTful Requests Using Protocol Buffers in the Java Client
Example that shows how to make synchronous RESTful requests using protocol buffers in the Java client. - Struct Support for RESTful Requests Using Protocol Buffers in the Java Client
Example that shows the support for structs as input for RESTful requests using protocol buffers in the Java client.
入力と出力
- Code Multiple Outputs for Java Client
MATLAB allows users to write functions that return multiple outputs. - Code Variable-Length Inputs and Outputs for Java Client
MATLAB supports functions with both variable number of input arguments (varargin
) and variable number of output arguments (varargout
).
セキュリティ
- Execute MATLAB Functions Using HTTPS
Configure the server and client environment to use SSL, then create a program proxy using the URL of the deployed application. - Customize Security Configuration
Configure HTTPS settings usingMWSSLConfig
.
データ型とデータ変換
- Marshal MATLAB Structures (Structs) in Java
Structures (or structs) are MATLAB arrays with elements accessed by textual field designators. - Evaluate Deployed Machine Learning Models Using Java Client
This example shows how to write a client application that sends an array of objects to a deployed machine learning model. - Data Conversion with Java and MATLAB Types
There are many data types that you can work with in MATLAB. Each of these data types is in the form of a matrix or array. You can build matrices and arrays of floating-point and integer data, characters and strings, and logical true and false states. Structures and cell arrays provide a way to store dissimilar types of data in the same array. - Conversion of Java Types to MATLAB Types
Learn how the server converts data between Java and MATLAB data types. - クライアントとサーバーのマーシャリングでサポートされている MATLAB データ型
MATLAB Production Server は、クライアント アプリケーションとサーバー インスタンス間で複数の MATLAB データ型のマーシャリングをサポートする。