All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.servicefabric.cluster.fdetector.FailureDetectorData Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
package io.servicefabric.cluster.fdetector;

import io.servicefabric.cluster.ClusterEndpoint;
import io.protostuff.Tag;

/** DTO class. Supports FailureDetector messages (Ping, Ack, PingReq). */
public final class FailureDetectorData {
	/** Message's source endpoint */
	@Tag(1)
	private ClusterEndpoint from;
	/** Message's destination endpoint */
	@Tag(2)
	private ClusterEndpoint to;
	/** Endpoint, who originally initiated ping sequence */
	@Tag(3)
	private ClusterEndpoint originalIssuer;

	public FailureDetectorData(ClusterEndpoint from, ClusterEndpoint to) {
		this.from = from;
		this.to = to;
	}

	public FailureDetectorData(ClusterEndpoint from, ClusterEndpoint to, ClusterEndpoint originalIssuer) {
		this.from = from;
		this.to = to;
		this.originalIssuer = originalIssuer;
	}

	public ClusterEndpoint getFrom() {
		return from;
	}

	public ClusterEndpoint getTo() {
		return to;
	}

	public ClusterEndpoint getOriginalIssuer() {
		return originalIssuer;
	}

	@Override
	public String toString() {
		return "FailureDetectorData{" +
				", from=" + from +
				", to=" + to +
				", originalIssuer=" + originalIssuer +
				'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy