001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2006-2008 Sun Microsystems, Inc. 015 * Portions Copyright 2015 ForgeRock AS. 016 */ 017package org.opends.quicksetup.installer; 018 019import org.opends.quicksetup.ProgressStep; 020 021/** 022 * Enumeration of installation steps. 023 */ 024public enum InstallProgressStep implements ProgressStep { 025 026 /** 027 * Install not started. 028 */ 029 NOT_STARTED, 030 031 /** 032 * Configuring server. 033 */ 034 CONFIGURING_SERVER, 035 036 /** 037 * Creating base entry for the suffix. 038 */ 039 CREATING_BASE_ENTRY, 040 041 /** 042 * Importing the contents of an LDIF file into the suffix. 043 */ 044 IMPORTING_LDIF, 045 046 /** 047 * Importing generated data into the suffix. 048 */ 049 IMPORTING_AUTOMATICALLY_GENERATED, 050 051 /** 052 * Configuring replication. 053 */ 054 CONFIGURING_REPLICATION, 055 056 /** 057 * Starting Open DS server. 058 */ 059 STARTING_SERVER, 060 061 /** 062 * Stopping Open DS server. 063 */ 064 STOPPING_SERVER, 065 066 /** 067 * Initialize Replicated Suffixes. 068 */ 069 INITIALIZE_REPLICATED_SUFFIXES, 070 071 /** 072 * Configuring ADS. 073 */ 074 CONFIGURING_ADS, 075 076 /** 077 * Enabling Windows service. 078 */ 079 ENABLING_WINDOWS_SERVICE, 080 081 /** 082 * User is waiting for current task to finish 083 * so that the operation can be canceled. 084 */ 085 WAITING_TO_CANCEL, 086 087 /** 088 * Canceling install. 089 */ 090 CANCELING, 091 092 /** 093 * Installation finished successfully. 094 */ 095 FINISHED_SUCCESSFULLY, 096 097 /** 098 * User canceled installation. 099 */ 100 FINISHED_CANCELED, 101 102 /** 103 * Installation finished with an error. 104 */ 105 FINISHED_WITH_ERROR; 106 107 /** {@inheritDoc} */ 108 public boolean isLast() { 109 return this == FINISHED_SUCCESSFULLY || 110 this == FINISHED_CANCELED || 111 this == FINISHED_WITH_ERROR; 112 } 113 114 /** {@inheritDoc} */ 115 public boolean isError() { 116 return this.equals(FINISHED_WITH_ERROR); 117 } 118}