public class ErlangTemplate extends ErlangAccessor implements ErlangOperations
logger
Constructor and Description |
---|
ErlangTemplate(ConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
protected OtpException |
convertOtpAccessException(Exception ex)
Convert the specified checked exception to
a Spring runtime exception equivalent.
|
<T> T |
execute(ConnectionCallback<T> action) |
Object |
executeAndConvertRpc(String module,
String function,
ErlangConverter converterToUse,
Object... args) |
Object |
executeAndConvertRpc(String module,
String function,
Object... args) |
com.ericsson.otp.erlang.OtpErlangObject |
executeErlangRpc(String module,
String function,
com.ericsson.otp.erlang.OtpErlangList args) |
com.ericsson.otp.erlang.OtpErlangObject |
executeErlangRpc(String module,
String function,
com.ericsson.otp.erlang.OtpErlangObject... args) |
com.ericsson.otp.erlang.OtpErlangObject |
executeRpc(String module,
String function,
Object... args) |
ErlangConverter |
getErlangConverter() |
void |
handleResponseError(String module,
String function,
com.ericsson.otp.erlang.OtpErlangObject result) |
void |
setErlangConverter(ErlangConverter erlangConverter) |
afterPropertiesSet, createConnection, getConnectionFactory, setConnectionFactory
public ErlangTemplate(ConnectionFactory connectionFactory)
public com.ericsson.otp.erlang.OtpErlangObject executeErlangRpc(String module, String function, com.ericsson.otp.erlang.OtpErlangList args)
executeErlangRpc
in interface ErlangOperations
public void handleResponseError(String module, String function, com.ericsson.otp.erlang.OtpErlangObject result)
public com.ericsson.otp.erlang.OtpErlangObject executeErlangRpc(String module, String function, com.ericsson.otp.erlang.OtpErlangObject... args)
executeErlangRpc
in interface ErlangOperations
public com.ericsson.otp.erlang.OtpErlangObject executeRpc(String module, String function, Object... args)
executeRpc
in interface ErlangOperations
public Object executeAndConvertRpc(String module, String function, ErlangConverter converterToUse, Object... args)
executeAndConvertRpc
in interface ErlangOperations
public Object executeAndConvertRpc(String module, String function, Object... args)
executeAndConvertRpc
in interface ErlangOperations
public ErlangConverter getErlangConverter()
public void setErlangConverter(ErlangConverter erlangConverter)
public <T> T execute(ConnectionCallback<T> action) throws OtpException
execute
in interface ErlangOperations
OtpException
protected OtpException convertOtpAccessException(Exception ex)
The default implementation delegates to the
ErlangUtils.convertOtpAccessException(java.lang.Exception)
method.
convertOtpAccessException
in class ErlangAccessor
ex
- the original checked Exception
to convertex
ErlangUtils.convertOtpAccessException(java.lang.Exception)