Class DebugExtension
java.lang.Object
org.creekservice.api.system.test.gradle.plugin.DebugExtension
Extension for configuring information about debugging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default attachMe port that the IntelliJ attachMe plugin uses.static final intThe start of the default range of ports on the local machine that services will listen on for the debugger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Integer>The port on which the attachMe plugin is listening on.abstract org.gradle.api.provider.Property<Integer>The base debug port.abstract org.gradle.api.provider.SetProperty<String>The set of service instances to be debugged.abstract org.gradle.api.provider.SetProperty<String>The set of services to be debugged.voidserviceInstanceNames(String... names) Set service names to debugvoidserviceNames(String... names) Set service names to debug
-
Field Details
-
DEFAULT_ATTACH_ME_PORT
public static final int DEFAULT_ATTACH_ME_PORTThe default attachMe port that the IntelliJ attachMe plugin uses.- See Also:
-
DEFAULT_BASE_DEBUG_PORT
public static final int DEFAULT_BASE_DEBUG_PORTThe start of the default range of ports on the local machine that services will listen on for the debugger.- See Also:
-
-
Constructor Details
-
DebugExtension
public DebugExtension()
-
-
Method Details
-
getAttachMePort
The port on which the attachMe plugin is listening on.This is the port the attachMe agent running within the microservice's process will call out on to ask the debugger to attach.
- Returns:
- the port the attachMe plugin is listening on.
-
getBaseServicePort
The base debug port.The port the first service being debugged will listen on for the debugger to attach. Subsequent services being debugged will use sequential port numbers.
- Returns:
- the base port number used for debugging.
-
getServiceNames
The set of services to be debugged.- Returns:
- set of services to debug.
-
serviceNames
Set service names to debug- Parameters:
names- the service names to debug
-
getServiceInstanceNames
The set of service instances to be debugged.An instance name is the name of the service with a dash and the instance number appended, e.g.
my-service-1.- Returns:
- set of service instances to debug.
-
serviceInstanceNames
Set service names to debug- Parameters:
names- the service instance names to debug
-