Class AccrualChannel<T>
java.lang.Object
pt.unl.fct.di.novasys.channel.base.SingleThreadedChannel<T,Y>
pt.unl.fct.di.novasys.channel.base.SingleThreadedBiChannel<T,AccrualMessage<T>>
pt.unl.fct.di.novasys.channel.accrual.AccrualChannel<T>
- All Implemented Interfaces:
IChannel<T>,AttributeValidator,InConnListener<AccrualMessage<T>>,MessageListener<AccrualMessage<T>>,OutConnListener<AccrualMessage<T>>
public class AccrualChannel<T>
extends SingleThreadedBiChannel<T,AccrualMessage<T>>
implements AttributeValidator
Based on the akka implementation of the Phi Accrual Failure Detector:
https://github.com/akka/akka/blob/main/akka-remote/src/main/scala/akka/remote/PhiAccrualFailureDetector.scala
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface pt.unl.fct.di.novasys.network.AttributeValidator
ALWAYS_VALID, CHANNEL_MAGIC_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionAccrualChannel(ISerializer<T> serializer, ChannelListener<T> list, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidonDeliverMessage(AccrualMessage<T> msg, Connection<AccrualMessage<T>> conn) voidonServerSocketBind(boolean success, Throwable cause) voidonServerSocketClose(boolean success, Throwable cause) booleanvalidateAttributes(Attributes attr) Methods inherited from class pt.unl.fct.di.novasys.channel.base.SingleThreadedBiChannel
inboundConnectionDown, inboundConnectionUp, outboundConnectionDown, outboundConnectionFailed, outboundConnectionUp, serverSocketBind, serverSocketCloseMethods inherited from class pt.unl.fct.di.novasys.channel.base.SingleThreadedChannel
closeConnection, deliverMessage, openConnection, sendMessage
-
Field Details
-
NAME
- See Also:
-
ADDRESS_KEY
- See Also:
-
PORT_KEY
- See Also:
-
WORKER_GROUP_KEY
- See Also:
-
TRIGGER_SENT_KEY
- See Also:
-
CONNECT_TIMEOUT_KEY
- See Also:
-
LISTEN_ADDRESS_ATTRIBUTE
- See Also:
-
DEFAULT_PORT
- See Also:
-
DEFAULT_CONNECT_TIMEOUT
- See Also:
-
CONNECTION_OUT
public static final int CONNECTION_OUT- See Also:
-
CONNECTION_IN
public static final int CONNECTION_IN- See Also:
-
WINDOW_SIZE_KEY
- See Also:
-
HB_INTERVAL_KEY
- See Also:
-
HB_INTERVAL_ATTRIBUTE
- See Also:
-
MIN_STD_DEVIATION_KEY
- See Also:
-
ACCEPTABLE_HB_PAUSE_KEY
- See Also:
-
THRESHOLD_KEY
- See Also:
-
PREDICT_INTERVAL_KEY
- See Also:
-
DEFAULT_WINDOW_SIZE
- See Also:
-
DEFAULT_HB_INTERVAL
- See Also:
-
DEFAULT_MIN_STD_DEVIATION
- See Also:
-
DEFAULT_ACCEPTABLE_HB_PAUSE
- See Also:
-
DEFAULT_THRESHOLD
- See Also:
-
DEFAULT_PREDICT_INTERVAL
- See Also:
-
-
Constructor Details
-
AccrualChannel
public AccrualChannel(ISerializer<T> serializer, ChannelListener<T> list, Properties properties) throws IOException - Throws:
IOException
-
-
Method Details
-
onServerSocketBind
-
onServerSocketClose
-
onDeliverMessage
-
validateAttributes
- Specified by:
validateAttributesin interfaceAttributeValidator
-