org.opends.server.api.plugin
Class PluginResult.Startup

java.lang.Object
  extended by org.opends.server.api.plugin.PluginResult.Startup
Enclosing class:
PluginResult

public static final class PluginResult.Startup
extends java.lang.Object

Defines a startup plugin result consisting of either continue skip further plugins, or stop startup with an error message.


Method Summary
 boolean continuePluginProcessing()
          Whether to invoke the rest of the plugins.
 boolean continueProcessing()
          Whether to continue startup.
static PluginResult.Startup continueStartup()
          Defines a continue processing startup plugin result.
 Message getErrorMessage()
          Retrieves the error message if continueProcessing returned false.
static PluginResult.Startup skipFurtherPluginProcesssing()
          Defines a skip further plugin processing startup plugin result.
static PluginResult.Startup stopStartup(Message errorMessage)
          Defines a new stop processing startup plugin result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

continueStartup

public static PluginResult.Startup continueStartup()
Defines a continue processing startup plugin result.

Returns:
a continue processing startup plugin result.

skipFurtherPluginProcesssing

public static PluginResult.Startup skipFurtherPluginProcesssing()
Defines a skip further plugin processing startup plugin result.

Returns:
a skip further plugin processing startup plugin result.

stopStartup

public static PluginResult.Startup stopStartup(Message errorMessage)
Defines a new stop processing startup plugin result.

Parameters:
errorMessage - An message explaining why processing should stop for the given entry.
Returns:
a new stop processing startup plugin result.

continueProcessing

public boolean continueProcessing()
Whether to continue startup.

Returns:
true if processing should continue or false otherwise.

continuePluginProcessing

public boolean continuePluginProcessing()
Whether to invoke the rest of the plugins.

Returns:
true if the rest of the plugins should be invoked for false to skip the rest of the plugins.

getErrorMessage

public Message getErrorMessage()
Retrieves the error message if continueProcessing returned false.

Returns:
An error message explaining why processing should stop or null if none is provided.