mps.cache.Controller
説明
MATLAB® のテスト環境で永続性サービスのライフ サイクルを管理するには、mps.cache.Controller
を使用します。このオブジェクトを使用して、サービスの開始や停止などのさまざまな操作を実行できます。
作成
mps.cache.control
を使用して mps.cache.Controller
オブジェクトを作成します。
プロパティ
オブジェクト関数
mps.cache.control | 永続性サービス コントローラー オブジェクトを作成する |
start | 永続性サービスを開始して MATLAB セッションに接続 |
stop | 永続性サービスを停止して MATLAB セッションから切り離す |
restart | 永続性サービスを再起動して MATLAB セッションに接続 |
attach | Connect MATLAB session to persistence service that is already running |
detach | Disconnect MATLAB session from persistence service that is already running |
ping | 永続性サービスに到達可能かどうかをテスト |
version | 永続性プロバイダーのバージョン番号 |
例
Redis サービス コントローラーの作成
ctrl = mps.cache.control('myRedisConnection','Redis','Port',4519)
ctrl = Controller with properties: ActiveConnection: False ManageService: Unknown Host: 'localhost' Port: 4519 Operations: "read | write | create | update" ProviderName: 'Redis' ConnectionName: 'myRedisConnection'
MATLAB サービス コントローラーの作成
mctrl = mps.cache.control('myMATFileConnection','MatlabTest','Folder','c:\tmp')
mctrl = Controller with properties: ActiveConnection: False ManageService: Unknown Folder: 'c:\tmp' Operations: "read | write | create | update" ProviderName: 'MatlabTest' ConnectionName: 'myMATFileConnection'
バージョン履歴
R2018b で導入