eu.lindenbaum.maven.erlang
Class StopApplicationScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.StopApplicationScript
All Implemented Interfaces:
Script<Void>

public class StopApplicationScript
extends Object

A Script stopping all erlang applications except the ones given in a preserver list.

Author:
Tobias Schlager , Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
StopApplicationScript(List<String> applicationsToPreserve)
          Creates a Script that stops all applications except a specific list of applications.
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 Void handle(com.ericsson.otp.erlang.OtpErlangObject result)
          The result of the Script execution is ignored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

protected final String script
Constructor Detail

StopApplicationScript

public StopApplicationScript(List<String> applicationsToPreserve)
                      throws org.apache.maven.plugin.MojoExecutionException
Creates a Script that stops all applications except a specific list of applications.

Parameters:
applicationsToPreserve - to not stop
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

get

public String get()
Description copied from interface: Script
Returns an evaluateable String containing the erlang script of the implementing class.

Returns:
An erlang script that can be evaluated.

handle

public Void handle(com.ericsson.otp.erlang.OtpErlangObject result)
The result of the Script execution is ignored.

Parameters:
result - the result term of the Script execution
Returns:
Always null.


Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.