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

io.zulia.server.index.NodeRequestBase Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package io.zulia.server.index;

import io.zulia.message.ZuliaBase.Node;
import io.zulia.server.node.ZuliaNode;

import java.util.Collection;

public abstract class NodeRequestBase {

	protected final Node thisNode;
	protected final Collection otherNodesActive;

	public NodeRequestBase(Node thisNode, Collection otherNodesActive) {

		this.thisNode = thisNode;
		this.otherNodesActive = otherNodesActive;

	}

	public boolean nodeIsLocal(Node node) {
		return ZuliaNode.isEqual(node, thisNode);
	}

	protected abstract O processExternal(Node node, I request) throws Exception;

	protected abstract O processInternal(Node node, I request) throws Exception;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy