Package com.atlassian.bamboo.grpc
Enum TestModeEnum
- java.lang.Object
-
- java.lang.Enum<TestModeEnum>
-
- com.atlassian.bamboo.grpc.TestModeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<TestModeEnum>
public enum TestModeEnum extends Enum<TestModeEnum>
This enum is used to indicate the test mode of the gRPC publisher-receiver.- Since:
- 9.5
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_TEST_MODE
Default mode.TEST_MODE_V1
Test mode 1.TEST_MODE_V2
Test mode 2.
-
Field Summary
Fields Modifier and Type Field Description static int
TEST_MODE_V2_EVENTS_MULTIPLIER
static AtomicInteger
testCounter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestModeEnum
fromValue(int value)
int
getValue()
static TestModeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static TestModeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TEST_MODE
public static final TestModeEnum NO_TEST_MODE
Default mode. No additions to the logic.
-
TEST_MODE_V1
public static final TestModeEnum TEST_MODE_V1
Test mode 1. is used in thecom.atlassian.bamboo.tardigrade.plans.b.jobs.GrpcReceiverPerfTest
and affects: -CrossNodesEventsReceiverService.invalidatePlanCache(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest, io.grpc.stub.StreamObserver<com.atlassian.bamboo.grpc.CrossNodesCommunication.CommonResponse>)
For more details seecom.atlassian.bamboo.grpc.CrossNodesEventsReceiverService#invalidatePlanCacheTestModeAddition
-
TEST_MODE_V2
public static final TestModeEnum TEST_MODE_V2
Test mode 2. is used in thecom.atlassian.bamboo.tardigrade.plans.b.jobs.GrpcReceiverPerfTest
and affects: -CrossNodesEventsReceiverService.invalidatePlanCache(com.atlassian.bamboo.grpc.CrossNodesCommunication.InvalidatePlanCacheRequest, io.grpc.stub.StreamObserver<com.atlassian.bamboo.grpc.CrossNodesCommunication.CommonResponse>)
For more details seecom.atlassian.bamboo.grpc.CrossNodesEventsReceiverService#invalidatePlanCacheTestModeAddition
-
-
Field Detail
-
testCounter
public static final AtomicInteger testCounter
-
TEST_MODE_V2_EVENTS_MULTIPLIER
public static final int TEST_MODE_V2_EVENTS_MULTIPLIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TestModeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TestModeEnum c : TestModeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TestModeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
fromValue
public static TestModeEnum fromValue(int value)
-
-