xmlBlaster 2.1.0 API

org.xmlBlaster.engine.runlevel
Class RunLevelAction

java.lang.Object
  extended by org.xmlBlaster.engine.runlevel.RunLevelAction

public class RunLevelAction
extends java.lang.Object

This class contains the information on how and when a certain plugin is invoked by the run level manager

Author:
Michele Laghi, Marcel Ruff
See Also:
engine.runlevel requirement
  <action do='LOAD'
             onStartupRunlevel='3'
             sequence='5'
             onFail='RESOURCE_CONFIGURATION_PLUGINFAILED'/>
 

Field Summary
private  java.lang.String action
           
private  int downLevel
           
private  ErrorCode errorCode
           
private  Global glob
           
static java.lang.String LOAD
           
private static java.util.logging.Logger log
           
private  int sequence
           
static java.lang.String STOP
           
private  int upLevel
           
 
Constructor Summary
RunLevelAction(Global glob)
          This constructor is the minimal constructor.
RunLevelAction(Global glob, java.lang.String action, int upLevel, int downLevel, ErrorCode errorCode, int sequence)
          This constructor takes all parameters needed
 
Method Summary
 java.lang.Object clone()
          returns a clone of this object.
 java.lang.String getDo()
           
 ErrorCode getOnFail()
           
 int getOnShutdownRunlevel()
           
 int getOnStartupRunlevel()
           
 int getSequence()
           
 boolean hasOnFail()
           
 boolean isOnShutdownRunlevel()
           
 boolean isOnStartupRunlevel()
           
 void setDo(java.lang.String action)
           
 void setOnFail(ErrorCode errorCode)
           
 void setOnShutdownRunlevel(int downLevel)
           
 void setOnStartupRunlevel(int upLevel)
           
 void setSequence(int sequence)
           
 java.lang.String toXml()
           
 java.lang.String toXml(java.lang.String extraOffset)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD

public static final java.lang.String LOAD
See Also:
Constant Field Values

STOP

public static final java.lang.String STOP
See Also:
Constant Field Values

glob

private final Global glob

log

private static java.util.logging.Logger log

action

private java.lang.String action

upLevel

private int upLevel

downLevel

private int downLevel

errorCode

private ErrorCode errorCode

sequence

private int sequence
Constructor Detail

RunLevelAction

public RunLevelAction(Global glob,
                      java.lang.String action,
                      int upLevel,
                      int downLevel,
                      ErrorCode errorCode,
                      int sequence)
This constructor takes all parameters needed


RunLevelAction

public RunLevelAction(Global glob)
This constructor is the minimal constructor.

Method Detail

clone

public java.lang.Object clone()
returns a clone of this object.

Overrides:
clone in class java.lang.Object

getDo

public java.lang.String getDo()

setDo

public void setDo(java.lang.String action)

getOnStartupRunlevel

public int getOnStartupRunlevel()

setOnStartupRunlevel

public void setOnStartupRunlevel(int upLevel)

isOnStartupRunlevel

public boolean isOnStartupRunlevel()

getOnShutdownRunlevel

public int getOnShutdownRunlevel()

setOnShutdownRunlevel

public void setOnShutdownRunlevel(int downLevel)

isOnShutdownRunlevel

public boolean isOnShutdownRunlevel()

getOnFail

public ErrorCode getOnFail()

setOnFail

public void setOnFail(ErrorCode errorCode)

hasOnFail

public boolean hasOnFail()

getSequence

public int getSequence()

setSequence

public void setSequence(int sequence)

toXml

public java.lang.String toXml(java.lang.String extraOffset)

toXml

public java.lang.String toXml()

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.