ErrorMessage.java revision a395dd575518d9e5280fc5d5d5ef47c61b174647
* 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 * You can obtain a copy of the license at * 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 * 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] * Copyright 2006-2008 Sun Microsystems, Inc. * This message is part of the replication protocol. * This message is sent by a server or a replication server when an error * is detected in the context of a total update. // The tracer object for the debug logger // Specifies the messageID built from the error that was detected // Specifies the complementary details about the error that was detected * Creates an ErrorMessage providing the destination server. * @param sender The server ID of the server that send this message. * @param destination The destination server or servers of this message. * @param details The message containing the details of the error. * Creates an ErrorMessage. * @param destination replication server id * @param details details of the error * Creates a new ErrorMessage by decoding the provided byte array. * @param in A byte array containing the encoded information for the Message * @throws DataFormatException If the in does not contain a properly /* first byte is the type */ * Get the base DN from this InitializeMessage. * @return the base DN from this InitializeMessage. * Get the base DN from this InitializeMessage. * @return the base DN from this InitializeMessage. /* The InitializeMessage is stored in the form : * <operation type><basedn><serverid> // put the type of the operation * Returns a string representation of the message. * @return the string representation of this message.