de.janrufmonitor.repository
Class AbstractFilterCallManager

java.lang.Object
  extended by de.janrufmonitor.repository.AbstractConfigurableCallManager
      extended by de.janrufmonitor.repository.AbstractFilterCallManager
All Implemented Interfaces:
IConfigurable, IManager, IRepositoryManager, ICallManager, IReadCallRepository
Direct Known Subclasses:
AbstractPersistentCallManager

public abstract class AbstractFilterCallManager
extends AbstractConfigurableCallManager
implements IReadCallRepository

This abstract class can be used as base class for a new call manager implementation which is supporting configuration and does not offer an own filter mechanism.

Author:
Thilo Brandt

Field Summary
 
Fields inherited from class de.janrufmonitor.repository.AbstractConfigurableCallManager
CFG_ENABLED, CFG_PRIO, m_configuration, m_externalID, m_logger
 
Constructor Summary
AbstractFilterCallManager()
           
 
Method Summary
protected  ICallList filterCalls(IFilter filter, ICallList cl)
           
 int getCallCount(IFilter[] filters)
          Gets the number of call entries in the repository for a specific filter object.
 ICallList getCalls(IFilter filter)
          Gets a list with all calls of a repository filtered by the specified filter implementation.
 ICallList getCalls(IFilter[] filters)
          Gets a list with all calls of a repository filtered by the specified filter array.
 ICallList getCalls(IFilter[] filters, int count, int offset)
          Gets a list with all calls of a repository filtered by the specified filter array.
protected abstract  ICallList getInitialCallList(IFilter f)
          Gets the initial call list which can be pre-filtered.
 boolean isSupported(Class c)
          Returns wether a repository type (de.janrufmonitor.repository.types.*) is suppored by a repository manager implementation.
 
Methods inherited from class de.janrufmonitor.repository.AbstractConfigurableCallManager
getConfigurableID, getID, getManagerID, getPriority, getRuntime, isActive, restart, setConfiguration, setManagerID, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.janrufmonitor.framework.configuration.IConfigurable
getNamespace
 

Constructor Detail

AbstractFilterCallManager

public AbstractFilterCallManager()
Method Detail

getInitialCallList

protected abstract ICallList getInitialCallList(IFilter f)
Gets the initial call list which can be pre-filtered.

Parameters:
f - inital filter object (optional processing).
Returns:
an inital list of ICall objects.

getCallCount

public int getCallCount(IFilter[] filters)
Description copied from interface: IReadCallRepository
Gets the number of call entries in the repository for a specific filter object.

Specified by:
getCallCount in interface IReadCallRepository
Returns:
number of calls applied on this filter

getCalls

public ICallList getCalls(IFilter[] filters,
                          int count,
                          int offset)
Description copied from interface: IReadCallRepository
Gets a list with all calls of a repository filtered by the specified filter array. The order of the filtering is done by the order of the array object.

Specified by:
getCalls in interface IReadCallRepository
count - number off entries from repository
offset - starting point in repository
Returns:
list with calls

getCalls

public ICallList getCalls(IFilter[] filters)
Description copied from interface: IReadCallRepository
Gets a list with all calls of a repository filtered by the specified filter array. The order of the filtering is done by the order of the array object.

Specified by:
getCalls in interface IReadCallRepository
Returns:
list with calls

getCalls

public ICallList getCalls(IFilter filter)
Description copied from interface: IReadCallRepository
Gets a list with all calls of a repository filtered by the specified filter implementation.

Specified by:
getCalls in interface IReadCallRepository
Returns:
list with calls

isSupported

public boolean isSupported(Class c)
Description copied from interface: IRepositoryManager
Returns wether a repository type (de.janrufmonitor.repository.types.*) is suppored by a repository manager implementation.

Specified by:
isSupported in interface IRepositoryManager
Parameters:
c - Interface to be supported.
Returns:
true is interface is supported, otherwise false.

filterCalls

protected ICallList filterCalls(IFilter filter,
                                ICallList cl)


Copyright © 2010 by Thilo Brandt. All Rights Reserved.