이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Java 클라이언트 프로그래밍
Java®에서 클라이언트 프로그램 만들기
MATLAB® Production Server™Java 클라이언트 API를 통해 네이티브 Java 데이터를 사용하여 원격 서버에 배포된 MATLAB 함수를 실행할 수 있습니다.
온프레미스 MATLAB Production Server 설치에서 클라이언트 API는
에 있습니다. 여기서 $MPS_INSTALL
/client
은 MATLAB Production Server 설치 위치입니다. 클라이언트 API는 MATLAB Production Server 클라이언트 라이브러리에서도 다운로드할 수 있습니다. 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.
정적 프록시와 동적 프록시를 사용한 프로그래밍
- Create MATLAB Production Server Java Client Using MWHttpClient Class
Define an interface, instantiate a static proxy object, and then call the deployed function. - 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. - Conversion of Java Types to MATLAB Types
Learn how the server converts data between Java and MATLAB data types. - Supported MATLAB Data Types for Client and Server Marshaling
MATLAB Production Server supports marshaling of several MATLAB data types between client applications and server instances.