Package kieker.tools.source
Class RestServiceCompositeStage
java.lang.Object
teetime.framework.CompositeStage
kieker.tools.source.RestServiceCompositeStage
- All Implemented Interfaces:
ISourceCompositeStage
public class RestServiceCompositeStage extends teetime.framework.CompositeStage implements ISourceCompositeStage
Multiple TCP input composite stage. This wrapper composite stage allows to configure the
RestServiceStage
via a configuration object.
Configuration parameters are:
- port
- port where the service is listening on
- hostname
- virtual host name to expect in URI (optional)
- accessHandler
- Not all hosts should be allowed to send monitoring data, the access handler limits access to the service
- Since:
- 1.15
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RestServiceCompositeStage(java.lang.String hostname, int port, IAccessHandler accessHandler)
Create a source composite stage for rest services.RestServiceCompositeStage(Configuration configuration)
Deprecated. -
Method Summary
Modifier and Type Method Description teetime.framework.OutputPort<IMonitoringRecord>
getOutputPort()
get the output port of a source composite stage.
-
Constructor Details
-
RestServiceCompositeStage
@Deprecated public RestServiceCompositeStage(Configuration configuration) throws ConfigurationExceptionDeprecated.Create a source composite stage for rest services.- Parameters:
configuration
- configuration for the service- Throws:
ConfigurationException
- on configuration errors
-
RestServiceCompositeStage
public RestServiceCompositeStage(java.lang.String hostname, int port, IAccessHandler accessHandler)Create a source composite stage for rest services.- Parameters:
hostname
- hostname to listen toport
- port to listen onaccessHandler
- controls access to the rest service
-
-
Method Details
-
getOutputPort
Description copied from interface:ISourceCompositeStage
get the output port of a source composite stage.- Specified by:
getOutputPort
in interfaceISourceCompositeStage
- Returns:
- the proper output port
-