Kieker 1.5

kieker.monitoring.core.registry
Interface IRegistry<E>

Type Parameters:
E - the type of the objects
All Known Implementing Classes:
Registry

public interface IRegistry<E>

A generic interface to assign unique IDs to objects.

Author:
Jan Waller

Method Summary
 int get(E value)
          Gets a unique id for an object.
 E get(int i)
          Gets the object associated with the unique id.
 E[] getAll()
          Return an array with all registered objects.
 int getSize()
          Returns the number of registered objects.
 void setRecordReceiver(IMonitoringRecordReceiver recordReceiver)
          Enables logging of newly registered objects.
 

Method Detail

get

int get(E value)
Gets a unique id for an object.

Parameters:
value - the object
Returns:
the unique id

get

E get(int i)
Gets the object associated with the unique id.

Parameters:
i - the unique id
Returns:
the associated object

getAll

E[] getAll()
Return an array with all registered objects.

Returns:
array of registered objects

getSize

int getSize()
Returns the number of registered objects.

Returns:
number of registered objects

setRecordReceiver

void setRecordReceiver(IMonitoringRecordReceiver recordReceiver)
Enables logging of newly registered objects.

Parameters:
recordReceiver - the IMonitoringRecordReceiver logged to

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net