Package com.atlassian.bamboo.grpc
Enum Class TestModeEnum
- All Implemented Interfaces:
Serializable
,Comparable<TestModeEnum>
,Constable
This enum is used to indicate the test mode of the gRPC publisher-receiver.
- Since:
- 9.5
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault mode.Test mode 1.Test mode 2. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TestModeEnum
fromValue
(int value) int
getValue()
static TestModeEnum
Returns the enum constant of this class with the specified name.static TestModeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_TEST_MODE
Default mode. No additions to the logic. -
TEST_MODE_V1
Test mode 1. is used in thecom.atlassian.bamboo.tardigrade.plans.b.jobs.GrpcReceiverPerfTest
and affects: -BambooCrossNodesEventsReceiverService.invalidatePlanCache(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest, io.grpc.stub.StreamObserver<com.atlassian.bamboo.grpc.CrossNodesCommunication.CommonResponse>)
For more details seeBambooCrossNodesEventsReceiverService.invalidatePlanCacheTestModeAdditions(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest)
-
TEST_MODE_V2
Test mode 2. is used in thecom.atlassian.bamboo.tardigrade.plans.b.jobs.GrpcReceiverPerfTest
and affects: -BambooCrossNodesEventsReceiverService.invalidatePlanCache(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest, io.grpc.stub.StreamObserver<com.atlassian.bamboo.grpc.CrossNodesCommunication.CommonResponse>)
For more details seeBambooCrossNodesEventsReceiverService.invalidatePlanCacheTestModeAdditions(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest)
-
-
Field Details
-
testCounter
-
TEST_MODE_V2_EVENTS_MULTIPLIER
public static final int TEST_MODE_V2_EVENTS_MULTIPLIER- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
fromValue
-