| 
Kieker 1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.tools.bridge.ServiceContainer
public class ServiceContainer
Container for the Kieker Data Bridge handling the startup and shutdown of Kieker and the service connector.
| Field Summary | |
|---|---|
static long | 
DEFAULT_LISTENER_UPDATE_INTERVAL
Update interval for the process listener.  | 
| Constructor Summary | |
|---|---|
ServiceContainer(Configuration configuration,
                 IServiceConnector service,
                 boolean respawn)
 | 
|
| Method Summary | |
|---|---|
 void | 
addListener(IServiceListener listener)
Add an update state listener.  | 
 long | 
getRecordCount()
 | 
 boolean | 
isRespawn()
 | 
 void | 
run()
Main loop of the Kieker bridge.  | 
 void | 
setListenerUpdateInterval(long listenerUpdateInterval)
Set the update interval for the listener information.  | 
 void | 
shutdown()
Safely end bridge loop.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final long DEFAULT_LISTENER_UPDATE_INTERVAL
| Constructor Detail | 
|---|
public ServiceContainer(Configuration configuration,
                        IServiceConnector service,
                        boolean respawn)
configuration - A configuration object for Kieker monitoringservice - A service component to handle incoming datarespawn - Respawn the connector if it fails (this construct is debatable it should be handled by the connector itself)| Method Detail | 
|---|
public void run()
         throws ConnectorDataTransmissionException
ConnectorDataTransmissionException - if deserializeNextRecord exits with a ConnectorDataTransmissionException
public void shutdown()
              throws ConnectorDataTransmissionException
ConnectorDataTransmissionException - An error occurred during data transmission and in this particular case
             while closing the data transmission.public void addListener(IServiceListener listener)
listener - an object implementing the IServiceListener interfacepublic void setListenerUpdateInterval(long listenerUpdateInterval)
listenerUpdateInterval - the new update interval in number of recordspublic long getRecordCount()
public boolean isRespawn()
  | 
Kieker 1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||