|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.lindenbaum.maven.erlang.MavenSelf
public final class MavenSelf
A wrapper around an OtpSelf
node that acts as a connection cache for
destination erlang nodes. Instantiation is guarded by the singleton pattern.
To retrieve an instance call get(String)
. Connections
retrieved by connect(String)
are cached in order to return
an already established connection. Thus this method can be called multiple
times.
Method Summary | ||
---|---|---|
com.ericsson.otp.erlang.OtpConnection |
connect(String peer)
Establishes an OtpConnection between this node and a specific
OtpPeer . |
|
|
exec(String peer,
Script<T> script)
Executes a Script on a specific remote erlang node using RPC. |
|
|
exec(String peer,
Script<T> script,
List<File> codePaths)
Executes a Script on a specific remote erlang node using RPC. |
|
static MavenSelf |
get(String cookie)
Returns a unique instance of MavenSelf per cookie using the
singleton pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MavenSelf get(String cookie) throws org.apache.maven.plugin.MojoExecutionException
MavenSelf
per cookie using the
singleton pattern.
cookie
- the cookie to use for this java node
MavenSelf
, never null
org.apache.maven.plugin.MojoExecutionException
- in case the instance cannot be createdpublic com.ericsson.otp.erlang.OtpConnection connect(String peer) throws org.apache.maven.plugin.MojoExecutionException
OtpConnection
between this node and a specific
OtpPeer
. The returned connection may be an already existing, cached
connection.
peer
- to connect to
OtpConnection
that may be used for rpc communication
org.apache.maven.plugin.MojoExecutionException
- in case the connection cannot be establishedpublic <T> T exec(String peer, Script<T> script) throws org.apache.maven.plugin.MojoExecutionException
Script
on a specific remote erlang node using RPC. A
connection to the remote node will be established if necessary. NOTE: This
will not automatically purge dynamically loaded modules neither will
it cleanup the code path of the backend node's code server.
peer
- to evaluate the Script
onscript
- to evaluate
Script
org.apache.maven.plugin.MojoExecutionException
public <T> T exec(String peer, Script<T> script, List<File> codePaths) throws org.apache.maven.plugin.MojoExecutionException
Script
on a specific remote erlang node using RPC. A
connection to the remote node will be established if necessary. NOTE: This
will not automatically purge dynamically loaded modules neither will
it cleanup the code path of the backend node's code server.
peer
- to evaluate the Script
onscript
- to evaluatecodePaths
- a list of paths needed for the script to run
Script
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |