This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Deployable Archive Creation

Create archives from MATLAB® code for deployment to the server

A deployable archive contains compiled MATLAB code to deploy on a MATLAB Production Server™ instance. You generate a deployable archive using either the Production Server Compiler app or the command line compiler.

Apps

Production Server CompilerPackage MATLAB programs for deployment to MATLAB Production Server

Functions

expand all

productionServerCompilerTest, build and package functions for use with MATLAB Production Server
mccCompile MATLAB functions for deployment
deploytoolCompile and package functions for external deployment

Controller

mps.cache.controlCreate a persistence service controller object
startStart a persistence service and attach it a to MATLAB session
stopStop a persistence service and detach it from a MATLAB session
restartRestart a persistence service and attach it to a MATLAB session
attachConnect a MATLAB session to a persistence service that is already running
detachDisconnect MATLAB session from a persistence service that is already running
pingTest whether the persistence service is reachable
versionVersion number for persistence provider

Cache

mps.cache.connectConnect to cache, or create a cache if it doesn't exist
bytesReturn the number of bytes of storage used by value stored at each key
clearRemove all keys and values from cache
flushWrite all locally modified keys to the persistence service
getFetch values of keys from cache
getpGet the value of a public cache property
isKeyDetermine if the cache contains specified keys
keysGet all keys from cache
lengthNumber of key-value pairs in the data cache
purgeFlush all local data to the persistence service
putWrite key-value pairs to cache
removeRemove keys from cache
retainStore remote keys from cache locally or return locally stored keys

Mutex

mps.sync.mutexCreate a persistence service mutex
acquireAcquire advisory lock on persistence service mutex
ownCheck ownership of advisory lock on a persistence service mutex object
releaseRelease advisory lock on persistence service mutex

Objects

expand all

mps.cache.ControllerManage the life cycle of a persistence service in a MATLAB testing environment
mps.cache.DataCacheRepresent cache concept in MATLAB code
mps.sync.TimedRedisMutexRepresent a Redis persistence service mutex
mps.sync.TimedMATFileMutexRepresent a MAT-file persistence service mutex

Topics

Create Deployable Archives

Package Deployable Archives from Command Line

Package MATLAB applications into deployable archives from the command line using the mcc command.

Customization

Customize the Application

How to customize the look and feel of the installer generated by the compiler app.

Manage Support Packages

Including support packages when packaging MATLAB applications.

Persistence

Use a Data Cache to Persist Data

Persist data between calls to a server instance

MATLAB Coding

MATLAB Coding Guidelines

Best practices for writing MATLAB code when deploying to MATLAB Production Server.

State-Dependent Functions

Dealing with MATLAB functions that carry state.

Deploying MATLAB Functions Containing MEX Files

How to include MEX files when deploying MATLAB functions.

Unsupported MATLAB Data Types for Client and Server Marshaling

List of unsupported MATLAB data types.

Modifying Deployed Functions

How to modify and redeploy MATLAB functions.