ReplicationCliReturnCode.java revision d90a03781f4833f726597d735b79b49073940d75
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2007-2010 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
*
* The enumeration which defines the return code.
*
*/
public enum ReplicationCliReturnCode
{
/** Successful. */
/** Successful but no operation was performed. */
/** Unable to initialize arguments. */
/**
* Cannot parse arguments because the user provided arguments are not valid
* or there was an error checking the user data.
*/
/** The user canceled the operation in interactive mode. */
/** Conflicting arguments. */
/** The provided base DNs cannot be used to enable replication. */
/** The provided base DNs cannot be used to disable replication. */
/** The provided base DNs cannot be used to initialize the contents of the replicas. */
/** Error connecting with the provided credentials. */
/** Could not find the replication ID of the domain to be used to initialize the replica. */
/**
* The number of tries we perform to start the initialization are over.
* We systematically receive a peer not found error.
*/
/** Error enabling replication on a base DN. */
/** Error initializing base DN. */
/** Error reading configuration. */
/** Error updating ADS. */
/** Error reading ADS. */
/** Error reading TopologyCache. */
/** Error configuring replication server. */
/** Unsupported ADS scenario. */
/** Error disabling replication on base DN. */
/** Error removing replication port reference on base DN. */
/** Error initializing Administration Framework. */
/** Error seeding trustore. */
/** Error launching pre external initialization. */
/** Error launching pre external initialization. */
/** Error disabling replication server. */
/** Error executing purge historical. */
/** The provided base DNs cannot be purged. */
/** Error launching purge historical. */
/** Error loading configuration class in local purge historical. */
/** Error starting server in local purge historical. */
/** Timeout error in local purge historical. */
/** Generic error executing local purge historical. */
/** Change number does not exists. */
/** Error launching reset change number task. */
/** CSN for a given change is not present. */
/** Exception from lower layers. */
/** Target DN for change could not be computed. */
/** Server configuration differs, base DNs are different. */
private LocalizableMessage message;
private int returnCode;
/** Private constructor. */
{
this.returnCode = returnCode;
}
/**
* Get the corresponding message.
*
* @return The corresponding message.
*/
public LocalizableMessage getMessage()
{
return message;
}
/**
* Get the corresponding return code value.
*
* @return The corresponding return code value.
*/
public int getReturnCode()
{
return returnCode;
}
}