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

com.jd.blockchain.consensus.NodeNetworkAddress Maven / Gradle / Ivy

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


import com.jd.binaryproto.DataContract;
import com.jd.binaryproto.DataField;
import com.jd.binaryproto.PrimitiveType;
import com.jd.blockchain.consts.DataCodes;

@DataContract(code = DataCodes.CONSENSUS_NODE_NETWORK_ADDRESS)
public interface NodeNetworkAddress {

    @DataField(order = 0, primitiveType = PrimitiveType.TEXT)
    String getHost();

    @DataField(order = 1, primitiveType = PrimitiveType.INT32)
    int getConsensusPort();

    @DataField(order = 2, primitiveType = PrimitiveType.INT32)
    int getMonitorPort();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy