| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.monitors; |
| | | |
| | |
| | | */ |
| | | public EntryCacheMonitorProvider() |
| | | { |
| | | super("Entry Caches Monitor Provider"); |
| | | this.entryCacheName = "Entry Caches"; |
| | | this.entryCache = (EntryCache<?>) DirectoryServer.getEntryCache(); |
| | | } |
| | |
| | | String entryCacheName, |
| | | EntryCache<? extends EntryCacheCfg> entryCache) |
| | | { |
| | | super(entryCacheName + " Entry Cache Monitor Provider"); |
| | | this.entryCacheName = entryCacheName + " Entry Cache"; |
| | | this.entryCache = entryCache; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public long getUpdateInterval() |
| | | { |
| | | // This monitor does not need to run periodically. |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void updateMonitorData() |
| | | { |
| | | // This monitor does not need to run periodically. |
| | | return; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public ArrayList<Attribute> getMonitorData() |
| | | { |
| | | ArrayList<Attribute> attrs = new ArrayList<Attribute>(); |