/*
* 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
* 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
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. 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 2009 Sun Microsystems, Inc.
*/
/**
* The table model used to display the monitoring information of connection
* handlers.
*
*/
public class ConnectionHandlersMonitoringTableModel extends
{
/**
* {@inheritDoc}
*/
{
{
{
}
else
{
{
}
}
}
return newAddresses;
}
/**
* {@inheritDoc}
*/
{
int result;
if (result == 0)
{
for (int i : possibleResults)
{
if (i != 0)
{
result = i;
break;
}
}
}
if (!isSortAscending())
{
}
return result;
}
{
int compare = 0;
boolean addressEqual = false;
{
{
addressEqual = true;
}
}
{
}
if (addressEqual)
{
}
else
{
}
return compare;
}
/**
* {@inheritDoc}
*/
{
return ach.getMonitoringEntry();
}
/**
* {@inheritDoc}
*/
{
{
}
else
{
{
}
else
{
}
switch (ch.getProtocol())
{
case OTHER:
break;
default:
break;
}
}
}
{
{
{
{
break;
}
else
{
" Statistics"))
{
break;
}
}
}
}
return monitoringEntry;
}
/**
* {@inheritDoc}
*/
{
return INFO_CTRL_PANEL_CONNECTION_HANDLER_HEADER.get();
}
}
/**
* The table model has one line per address, this object represents that
* address and all the associated monitoring information.
*
*/
{
private int hashCode;
/**
* Constructor of this data structure.
* @param ch the connection handler descriptor.
* @param address the address.
* @param monitoringEntry the monitoringEntry.
*/
{
this.monitoringEntry = monitoringEntry;
{
}
else
{
}
}
/**
* Returns the address.
* @return the address.
*/
{
return address;
}
/**
* Returns the connection handler descriptor.
* @return the connection handler descriptor.
*/
{
return ch;
}
/**
* Returns the monitoring entry.
* @return the monitoring entry.
*/
{
return monitoringEntry;
}
/**
* {@inheritDoc}
*/
public int hashCode()
{
return hashCode;
}
/**
* {@inheritDoc}
*/
{
boolean equals = false;
if (o != this)
{
if (o instanceof AddressConnectionHandlerDescriptor)
{
{
}
else if (getAddress() == null)
{
equals = false;
}
else
{
}
if (equals)
{
}
}
}
else
{
equals = true;
}
return equals;
}
}