Class ServiceActivityRequestEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractServiceEvent
-
- software.amazon.disco.agent.event.AbstractServiceRequestEvent
-
- software.amazon.disco.agent.event.ServiceActivityRequestEvent
-
- All Implemented Interfaces:
Event,ServiceEvent,ServiceRequestEvent
public class ServiceActivityRequestEvent extends AbstractServiceRequestEvent
Concrete ServiceEvent to express a service activity request, i.e. when the service-under-test is just about to execute a transaction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ServiceEvent
ServiceEvent.Type
-
-
Field Summary
-
Fields inherited from class software.amazon.disco.agent.event.AbstractEvent
data, origin
-
-
Constructor Summary
Constructors Constructor Description ServiceActivityRequestEvent(java.lang.String origin, java.lang.String service, java.lang.String operation)Construct a ServiceActivityRequestEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceEvent.TypegetType()Get the type of this ServiceEvent-
Methods inherited from class software.amazon.disco.agent.event.AbstractServiceRequestEvent
getRequest, withRequest
-
Methods inherited from class software.amazon.disco.agent.event.AbstractServiceEvent
getOperation, getService
-
Methods inherited from class software.amazon.disco.agent.event.AbstractEvent
getData, getOrigin, withData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.disco.agent.event.ServiceEvent
getOperation, getService
-
-
-
-
Constructor Detail
-
ServiceActivityRequestEvent
public ServiceActivityRequestEvent(java.lang.String origin, java.lang.String service, java.lang.String operation)Construct a ServiceActivityRequestEvent- Parameters:
origin- the origin of the activity e.g. 'Web' or 'gRPC'service- the service name e.g. 'WeatherService'operation- the operation name e.g. 'getWeather'
-
-
Method Detail
-
getType
public ServiceEvent.Type getType()
Get the type of this ServiceEvent- Specified by:
getTypein interfaceServiceEvent- Specified by:
getTypein classAbstractServiceEvent- Returns:
- either ACTIVITY or DOWNSTREAM
-
-