if (debugEnabled())
TRACER.debugInfo(
"Server id " + serverID + " and domain " + serviceID
+ " resetGenerationId " + generationIdNewValue);
ResetGenerationIdMsg genIdMessage = null;
if (generationIdNewValue == null)
{
genIdMessage = new ResetGenerationIdMsg(this.getGenerationID());
}
else
{
genIdMessage = new ResetGenerationIdMsg(generationIdNewValue);
}
if (!isConnected())
{
ResultCode resultCode = ResultCode.OTHER;
Message message = ERR_RESET_GENERATION_CONN_ERR_ID.get(serviceID,
Integer.toString(serverID),
Long.toString(genIdMessage.getGenerationId()));
throw new DirectoryException(
resultCode, message);
}
broker.publish(genIdMessage);