LoggingMatlabProxy.
Wraps around a MatlabProxy to 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.
Level.FINER. If the logging system has not been otherwise configured,
then the ConsoleHandler which prints log messages to the console will not show these log messages as their
level is too low. To configure the ConsoleHandler to show these log messages, call
showInConsoleHandler().
public class MatlabProxyLogger extends Object
| Constructor and Description |
|---|
MatlabProxyLogger(MatlabProxy proxy)
Deprecated.
Constructs the logger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisconnectionListener(MatlabProxy.DisconnectionListener listener)
Deprecated.
Delegates to the proxy; logs the interaction.
|
boolean |
disconnect()
Deprecated.
Delegates to the proxy; logs the interaction.
|
void |
eval(String command)
Deprecated.
Delegates to the proxy; logs the interaction.
|
void |
exit()
Deprecated.
Delegates to the proxy; logs the interaction.
|
void |
feval(String functionName,
Object... args)
Deprecated.
Delegates to the proxy; logs the interaction.
|
MatlabProxy.Identifier |
getIdentifier()
Deprecated.
Delegates to the proxy; logs the interaction.
|
Object |
getVariable(String variableName)
Deprecated.
Delegates to the proxy; logs the interaction.
|
<U> U |
invokeAndWait(MatlabProxy.MatlabThreadCallable<U> callable)
Deprecated.
Delegates to the proxy; logs the interaction.
|
boolean |
isConnected()
Deprecated.
Delegates to the proxy; logs the interaction.
|
boolean |
isExistingSession()
Deprecated.
Delegates to the proxy; logs the interaction.
|
boolean |
isRunningInsideMatlab()
Deprecated.
Delegates to the proxy; logs the interaction.
|
void |
removeDisconnectionListener(MatlabProxy.DisconnectionListener listener)
Deprecated.
Delegates to the proxy; logs the interaction.
|
Object[] |
returningEval(String command,
int nargout)
Deprecated.
Delegates to the proxy; logs the interaction.
|
Object[] |
returningFeval(String functionName,
int nargout,
Object... args)
Deprecated.
Delegates to the proxy; logs the interaction.
|
void |
setVariable(String variableName,
Object value)
Deprecated.
Delegates to the proxy; logs the interaction.
|
static void |
showInConsoleHandler()
Deprecated.
Configures the
ConsoleHandler responsible for showing logging records to show the records that are
logged by this interactor. |
String |
toString()
Deprecated.
Returns a brief description of this proxy.
|
public MatlabProxyLogger(MatlabProxy proxy)
proxy throws an exception it will be caught, logged, and
then rethrown.proxy - public static void showInConsoleHandler()
ConsoleHandler responsible for showing logging records to show the records that are
logged by this interactor. This is behavior is useful if you have not otherwise configured logging in your
application.public void eval(String command) throws MatlabInvocationException
command - MatlabInvocationExceptionpublic Object[] returningEval(String command, int nargout) throws MatlabInvocationException
command - nargout - MatlabInvocationExceptioMatlabInvocationExceptionpublic void feval(String functionName, Object... args) throws MatlabInvocationException
functionName - args - MatlabInvocationExceptionpublic Object[] returningFeval(String functionName, int nargout, Object... args) throws MatlabInvocationException
functionName - nargout - args - MatlabInvocationExceptionpublic void setVariable(String variableName, Object value) throws MatlabInvocationException
variableName - value - MatlabInvocationExceptionpublic Object getVariable(String variableName) throws MatlabInvocationException
variableName - MatlabInvocationExceptionpublic <U> U invokeAndWait(MatlabProxy.MatlabThreadCallable<U> callable) throws MatlabInvocationException
U - callable - MatlabInvocationExceptionpublic void addDisconnectionListener(MatlabProxy.DisconnectionListener listener)
listener - public void removeDisconnectionListener(MatlabProxy.DisconnectionListener listener)
listener - public boolean disconnect()
public boolean isExistingSession()
public boolean isRunningInsideMatlab()
public boolean isConnected()
public MatlabProxy.Identifier getIdentifier()
public void exit()
throws MatlabInvocationException
MatlabInvocationException