| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * A startup plugin result instance that indicates all processing |
| | | * was successful. |
| | | */ |
| | | public static final StartupPluginResult SUCCESS = |
| | | new StartupPluginResult(); |
| | | |
| | | |
| | | |
| | | // Indicates whether the startup plugin completed successfully. |
| | | private boolean completedSuccessfully; |
| | | private final boolean completedSuccessfully; |
| | | |
| | | // Indicates whether the server should continue with the startup |
| | | // process. |
| | | private boolean continueStartup; |
| | | private final boolean continueStartup; |
| | | |
| | | // The unique identifier for any error message generated by the |
| | | // startup plugin. |
| | | private int errorID; |
| | | private final int errorID; |
| | | |
| | | // A human-readable message that explains any error that might have |
| | | // occurred. |
| | | private String errorMessage; |
| | | private final String errorMessage; |
| | | |
| | | |
| | | |
| | |
| | | * successfully, that the startup process should continue, and that |
| | | * there is no error message. |
| | | */ |
| | | public StartupPluginResult() |
| | | private StartupPluginResult() |
| | | { |
| | | assert debugConstructor(CLASS_NAME); |
| | | |
| | | this.completedSuccessfully = true; |
| | | this.continueStartup = true; |
| | | this.errorID = 0; |
| | | this.errorMessage = null; |
| | | this(true, true, 0, null); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether the startup plugin completed its processing |
| | | * successfully. |
| | | * |
| | | * @param completedSuccessfully Specifies whether the startup |
| | | * plugin completed its processing |
| | | * successfully. |
| | | */ |
| | | public void setCompletedSuccessfully(boolean completedSuccessfully) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setCompletedSuccessfully", |
| | | String.valueOf(completedSuccessfully)); |
| | | |
| | | this.completedSuccessfully = completedSuccessfully; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether the Directory Server should continue with its |
| | | * startup process. |
| | | * |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether the Directory Server should continue with its |
| | | * startup process. |
| | | * |
| | | * @param continueStartup Specifies whether the Directory Server |
| | | * should continue with its startup |
| | | * process. |
| | | */ |
| | | public void setContinueStartup(boolean continueStartup) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setContinueStartup", |
| | | String.valueOf(continueStartup)); |
| | | |
| | | this.continueStartup = continueStartup; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the unique ID for the error message generated by the |
| | | * startup plugin. |
| | | * |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies the unique ID for the error message generated by the |
| | | * startup plugin. |
| | | * |
| | | * @param errorID The unique ID for the error message generated by |
| | | * the startup plugin. |
| | | */ |
| | | public void setErrorID(int errorID) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setErrorID", |
| | | String.valueOf(errorID)); |
| | | |
| | | this.errorID = errorID; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the human-readable error message generated by the |
| | | * startup plugin. |
| | | * |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies the human-readable error message generated by the |
| | | * startup plugin. |
| | | * |
| | | * @param errorMessage The human-readable error message generated |
| | | * by the startup plugin. |
| | | */ |
| | | public void setErrorMessage(String errorMessage) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setErrorMessage", |
| | | String.valueOf(errorMessage)); |
| | | |
| | | this.errorMessage = errorMessage; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves a string representation of this startup plugin result. |
| | | * |
| | | * @return A string representation of this startup plugin result. |