| | |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.SortedMap; |
| | | |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ArrayList<Attribute> getMonitorData() |
| | | public List<Attribute> getMonitorData() |
| | | { |
| | | ArrayList<Attribute> attrs = new ArrayList<Attribute>(); |
| | | |
| | | // The sum of cache hits of all active entry cache implementations. |
| | | long entryCacheHits = 0; |
| | | // Common for all active entry cache implementations. |
| | |
| | | } |
| | | |
| | | try { |
| | | attrs = EntryCacheCommon.getGenericMonitorData( |
| | | return EntryCacheCommon.getGenericMonitorData( |
| | | entryCacheHits, |
| | | entryCacheMisses, |
| | | null, |
| | |
| | | ); |
| | | } catch (Exception e) { |
| | | logger.traceException(e); |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | return attrs; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |