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

cn.hyperchain.sdk.service.NodeService Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.service;

import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.node.NodeHashResponse;
import cn.hyperchain.sdk.response.node.NodeResponse;
import cn.hyperchain.sdk.response.node.NodeStateResponse;

public interface NodeService {
    Request getNodes(int... nodeIds);

    /**
     * get all nodes states.
     *
     * @param nodeIds specific ids
     * @return {@link Request} of {@link NodeStateResponse}
     */
    Request getNodeStates(int... nodeIds);

    /**
     * get hash of the node that select in nodeIds randomly.
     *
     * @param nodeIds specific ids
     * @return {@link Request} of {@link NodeHashResponse}
     */
    Request getNodeHash(int... nodeIds);

    /**
     * get hash of the node by nodeId.
     *
     * @param nodeId specific id
     * @return {@link Request} of {@link NodeHashResponse}
     */
    Request getNodeHashByID(int nodeId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy