|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.extensions.EntryCacheCommon.ConfigErrorHandler
public class EntryCacheCommon.ConfigErrorHandler
Error handler used by local methods to report configuration error. The error handler simplifies the code of initializeEntryCache(), isConfigurationChangeAcceptable() and applyConfigurationChanges() methods.
Constructor Summary | |
---|---|
EntryCacheCommon.ConfigErrorHandler(EntryCacheCommon.ConfigPhase configPhase,
java.util.List<Message> unacceptableReasons,
java.util.ArrayList<Message> errorMessages)
Create an error handler. |
Method Summary | |
---|---|
EntryCacheCommon.ConfigPhase |
getConfigPhase()
Get the current configuration phase. |
java.util.ArrayList<Message> |
getErrorMessages()
Get the current error messages. |
boolean |
getIsAcceptable()
Get the current isAcceptable flag. |
boolean |
getIsAdminActionRequired()
Get the current isAdminActionRequired flag as determined after apply action has been taken on a given configuration. |
ResultCode |
getResultCode()
Get the current result code that was elaborated right after a configuration has been applied. |
java.util.List<Message> |
getUnacceptableReasons()
Get the current unacceptable reasons. |
void |
reportError(Message error,
boolean isAcceptable,
ResultCode resultCode)
Report an error. |
void |
reportError(Message error,
boolean isAcceptable,
ResultCode resultCode,
boolean isAdminActionRequired)
Report an error. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryCacheCommon.ConfigErrorHandler(EntryCacheCommon.ConfigPhase configPhase, java.util.List<Message> unacceptableReasons, java.util.ArrayList<Message> errorMessages)
configPhase
- the configuration phase for which the
error handler is usedunacceptableReasons
- the reasons why the configuration cannot
be applied (during PHASE_ACCEPTABLE phase)errorMessages
- the errors found when applying a new
configuration (during PHASE_APPLY phase)Method Detail |
---|
public void reportError(Message error, boolean isAcceptable, ResultCode resultCode)
error
- the error to reportisAcceptable
- true
if the configuration is acceptableresultCode
- the change result for the current configurationpublic void reportError(Message error, boolean isAcceptable, ResultCode resultCode, boolean isAdminActionRequired)
error
- the error to reportisAcceptable
- true
if the configuration is acceptableresultCode
- the change result for the current configurationisAdminActionRequired
- true
if administrative action
is required or false
otherwisepublic ResultCode getResultCode()
public boolean getIsAcceptable()
public java.util.List<Message> getUnacceptableReasons()
public java.util.ArrayList<Message> getErrorMessages()
public EntryCacheCommon.ConfigPhase getConfigPhase()
public boolean getIsAdminActionRequired()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |