io.zulia.server.index.NodeRequestBase Maven / Gradle / Ivy
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