Index

A B C D E G H I M N O P R S T V 
All Classes and Interfaces|All Packages

A

A_SIDE - Enum constant in enum class net.reevik.shade.RoutingMode
A side only.

B

B_SIDE - Enum constant in enum class net.reevik.shade.RoutingMode
B side only.

C

canRoute() - Method in class net.reevik.shade.criteria.CountingCondition
 
canRoute() - Method in interface net.reevik.shade.criteria.RoutingCondition
Returns @code true} if the request should be routed.
CountingCondition - Class in net.reevik.shade.criteria
Criterion which enables routing in case the number of requests reach a pre-configured threshold.
CountingCondition(int) - Constructor for class net.reevik.shade.criteria.CountingCondition
 
CustomEqualsAcceptanceImpl<T> - Class in net.reevik.shade.validators
 
CustomEqualsAcceptanceImpl(BiPredicate<Result<T>, Result<T>>) - Constructor for class net.reevik.shade.validators.CustomEqualsAcceptanceImpl
 

D

description() - Method in record class net.reevik.shade.validators.ValidationResult
Returns the value of the description record component.
duration() - Method in class net.reevik.shade.ErrorResult
 
duration() - Method in interface net.reevik.shade.Result
Endpoint call duration.
duration() - Method in record class net.reevik.shade.SuccessResult
Returns the value of the duration record component.

E

EndpointRouter<T> - Class in net.reevik.shade
 
EndpointRouter(RoutingConfiguration<T>) - Constructor for class net.reevik.shade.EndpointRouter
 
equals(Object) - Method in class net.reevik.shade.ErrorResult
 
equals(Object) - Method in record class net.reevik.shade.SuccessResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.reevik.shade.validators.ValidationResult
Indicates whether some other object is "equal to" this one.
EqualsValidatorImpl<T> - Class in net.reevik.shade.validators
Validates the equality of the result objects.
EqualsValidatorImpl() - Constructor for class net.reevik.shade.validators.EqualsValidatorImpl
 
ErrorResult<T> - Class in net.reevik.shade
Error result representation.
ErrorResult(Exception, Duration) - Constructor for class net.reevik.shade.ErrorResult
 

G

getError() - Method in class net.reevik.shade.ErrorResult
 
getExecutorService() - Method in class net.reevik.shade.RoutingConfiguration
 
getMonitorable() - Method in class net.reevik.shade.RoutingConfiguration
 
getOrThrow() - Method in class net.reevik.shade.ErrorResult
 
getOrThrow() - Method in interface net.reevik.shade.Result
Returns the result object if the endpoint call succeeded, or throws an exception if otherwise.
getOrThrow() - Method in record class net.reevik.shade.SuccessResult
 
getRoutingCriterion() - Method in class net.reevik.shade.RoutingConfiguration
 
getRoutingMode() - Method in class net.reevik.shade.RoutingConfiguration
 
getSideACommand() - Method in class net.reevik.shade.RoutingConfiguration
 
getSideBCommand() - Method in class net.reevik.shade.RoutingConfiguration
 
getValidator() - Method in class net.reevik.shade.RoutingConfiguration
 

H

hashCode() - Method in class net.reevik.shade.ErrorResult
 
hashCode() - Method in record class net.reevik.shade.SuccessResult
Returns a hash code value for this object.
hashCode() - Method in record class net.reevik.shade.validators.ValidationResult
Returns a hash code value for this object.

I

isSucceeded() - Method in class net.reevik.shade.ErrorResult
 
isSucceeded() - Method in interface net.reevik.shade.Result
If the call succeeds, returns true.
isSucceeded() - Method in record class net.reevik.shade.SuccessResult
 

M

Monitorable - Interface in net.reevik.shade
Implementations of Monitorable will get called, whenever a routing event is triggered.
mustEqual() - Static method in class net.reevik.shade.validators.ValidatorFactory
The validator assures that the results from both endpoints equal.
mustPerformSimilar(Duration) - Static method in class net.reevik.shade.validators.ValidatorFactory
The validator assures that both endpoint calls perform similar, i.e., within the range of max.

N

net.reevik.shade - package net.reevik.shade
Darkest root package.
net.reevik.shade.criteria - package net.reevik.shade.criteria
Package which contains the criteria implementations.
net.reevik.shade.validators - package net.reevik.shade.validators
Package contains validator implementations.
newResult(boolean, String) - Static method in class net.reevik.shade.validators.ValidatorFactory
Factory method for ValidationResult.
NoopMonitoringImpl - Class in net.reevik.shade
 
NoopMonitoringImpl() - Constructor for class net.reevik.shade.NoopMonitoringImpl
 

O

onRoute() - Method in interface net.reevik.shade.Monitorable
The method will get triggered whenever the request is routed to the new endpoint.
onRoute() - Method in class net.reevik.shade.NoopMonitoringImpl
 
onStay() - Method in interface net.reevik.shade.Monitorable
The method will get triggered whenever the request is routed to the old endpoint.
onStay() - Method in class net.reevik.shade.NoopMonitoringImpl
 
onValidationError(ValidationResult) - Method in interface net.reevik.shade.Monitorable
The method will get triggered on validation error.
onValidationError(ValidationResult) - Method in class net.reevik.shade.NoopMonitoringImpl
 
onValidationSuccess(ValidationResult) - Method in interface net.reevik.shade.Monitorable
The method will get triggered on validation success.
onValidationSuccess(ValidationResult) - Method in class net.reevik.shade.NoopMonitoringImpl
 

P

passed() - Method in record class net.reevik.shade.validators.ValidationResult
Returns the value of the passed record component.
PerformanceValidatorImpl<T> - Class in net.reevik.shade.validators
 
PerformanceValidatorImpl(Duration) - Constructor for class net.reevik.shade.validators.PerformanceValidatorImpl
 

R

result() - Method in record class net.reevik.shade.SuccessResult
Returns the value of the result record component.
Result<T> - Interface in net.reevik.shade
A wrapper for the result object from the endpoint call.
ResultValidator<T> - Interface in net.reevik.shade.validators
The response objects from both endpoints need to be compared to evaluate if they are compatible so that the endpoint switch can be performed.
ResultValidatorImpl<T> - Class in net.reevik.shade.validators
 
ResultValidatorImpl(List<ResultValidator<T>>) - Constructor for class net.reevik.shade.validators.ResultValidatorImpl
 
ROLL_OUT - Enum constant in enum class net.reevik.shade.RoutingMode
Enables the roll-out mode.
route() - Method in class net.reevik.shade.EndpointRouter
 
RoutingCondition - Interface in net.reevik.shade.criteria
Routing condition determines when an incoming request needs to be routed to the new endpoint.
RoutingConfiguration<T> - Class in net.reevik.shade
 
RoutingConfiguration(SideCommand<T>, SideCommand<T>, ResultValidator<T>, RoutingMode, RoutingCondition, Monitorable) - Constructor for class net.reevik.shade.RoutingConfiguration
 
RoutingMode - Enum Class in net.reevik.shade
Routing mode dictates the current behaviour of the request routing.
run() - Method in class net.reevik.shade.SideCommand
 

S

SHADOW_MODE_ACTIVE - Enum constant in enum class net.reevik.shade.RoutingMode
Shadow mode is active in active mode.
SHADOW_MODE_PASSIVE - Enum constant in enum class net.reevik.shade.RoutingMode
Shadow mode is active in passive mode.
SideCommand<T> - Class in net.reevik.shade
 
SideCommand(Callable<T>) - Constructor for class net.reevik.shade.SideCommand
 
SuccessResult<T> - Record Class in net.reevik.shade
 
SuccessResult(T, Duration) - Constructor for record class net.reevik.shade.SuccessResult
Creates an instance of a SuccessResult record class.

T

toString() - Method in class net.reevik.shade.ErrorResult
 
toString() - Method in record class net.reevik.shade.SuccessResult
Returns a string representation of this record class.
toString() - Method in record class net.reevik.shade.validators.ValidationResult
Returns a string representation of this record class.

V

validate(Result<T>, Result<T>) - Method in class net.reevik.shade.validators.CustomEqualsAcceptanceImpl
 
validate(Result<T>, Result<T>) - Method in class net.reevik.shade.validators.EqualsValidatorImpl
 
validate(Result<T>, Result<T>) - Method in class net.reevik.shade.validators.PerformanceValidatorImpl
 
validate(Result<T>, Result<T>) - Method in interface net.reevik.shade.validators.ResultValidator
Validates if the result from the B side is compatible with the one from the A side.
validate(Result<T>, Result<T>) - Method in class net.reevik.shade.validators.ResultValidatorImpl
 
ValidationResult - Record Class in net.reevik.shade.validators
Validation result is a DTO which conveys information about the validation.
ValidationResult(boolean, String) - Constructor for record class net.reevik.shade.validators.ValidationResult
Creates an instance of a ValidationResult record class.
ValidatorFactory - Class in net.reevik.shade.validators
Standard validator factory is a factory implementation for ResultValidator.
ValidatorFactory() - Constructor for class net.reevik.shade.validators.ValidatorFactory
 
valueOf(String) - Static method in enum class net.reevik.shade.RoutingMode
Returns the enum constant of this class with the specified name.
values() - Static method in enum class net.reevik.shade.RoutingMode
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E G H I M N O P R S T V 
All Classes and Interfaces|All Packages