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