MatlabProxyLogger¶
-
public class
MatlabProxyLogger¶ Wraps around a
MatlabProxyto provide a log of interactions. The data is not altered. This logger is useful for determining the Java types and structure of data returned from MATLAB. Entering a method, exiting a method, and throwing an exception are logged. Method parameters and return values are logged. The contents of a returned array will be recursively explored and its contents logged. As is convention, all of these interactions are logged atLevel.FINER. If the logging system has not been otherwise configured, then theConsoleHandlerwhich prints log messages to the console will not show these log messages as their level is too low. To configure theConsoleHandlerto show these log messages, callshowInConsoleHandler(). This class is unconditionally thread-safe.Author: Joshua Kaplan
Constructors¶
MatlabProxyLogger¶
-
public
MatlabProxyLogger(MatlabProxy proxy)¶ Constructs the logger. If the provided
proxythrows an exception it will be caught, logged, and then rethrown.Parameters: - proxy –
Methods¶
addDisconnectionListener¶
-
public void
addDisconnectionListener(DisconnectionListener listener)¶ Delegates to the proxy; logs the interaction.
Parameters: - listener –
eval¶
feval¶
getIdentifier¶
-
public Identifier
getIdentifier()¶ Delegates to the proxy; logs the interaction.
getVariable¶
invokeAndWait¶
-
public <U> U
invokeAndWait(MatlabThreadCallable<U> callable)¶ Delegates to the proxy; logs the interaction.
Parameters: - <U> –
- callable –
Throws:
isExistingSession¶
-
public boolean
isExistingSession()¶ Delegates to the proxy; logs the interaction.
isRunningInsideMatlab¶
-
public boolean
isRunningInsideMatlab()¶ Delegates to the proxy; logs the interaction.
removeDisconnectionListener¶
-
public void
removeDisconnectionListener(DisconnectionListener listener)¶ Delegates to the proxy; logs the interaction.
Parameters: - listener –