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

com.jd.blockchain.consensus.manage.ConsensusView Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.consensus.manage;

import utils.net.NetworkAddress;

public interface ConsensusView {

	/**
	 * 视图编号;
	 * 
	 * @return
	 */
	int getViewID();

	/**
	 * 节点列表;
	 * 
	 * @return
	 */
	Node[] getNodes();

	public static interface Node {

		/**
		 * 副本编号;
		 * 
		 * @return
		 */
		int getReplicaId();

		/**
		 * 网址;
		 * 
		 * @return
		 */
		NetworkAddress getNetworkAddress();

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy