cn.hyperchain.sdk.service.FileMgrService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litesdk Show documentation
Show all versions of litesdk Show documentation
A Java client tool for Hyperchain
package cn.hyperchain.sdk.service;
import cn.hyperchain.sdk.account.Account;
import cn.hyperchain.sdk.exception.FileMgrException;
import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.filemgr.FileDownloadResponse;
import cn.hyperchain.sdk.response.filemgr.FileExtraFromFileHashResponse;
import cn.hyperchain.sdk.response.filemgr.FileUpdateResponse;
import cn.hyperchain.sdk.response.filemgr.FileUploadResponse;
import cn.hyperchain.sdk.response.filemgr.FilePushResponse;
import cn.hyperchain.sdk.response.filemgr.FileExtraFromTxHashResponse;
import cn.hyperchain.sdk.service.params.FileUploadParams;
public interface FileMgrService {
FileUploadResponse fileUpload(String filePath, String description, Account account, int... nodeIdList) throws FileMgrException;
FileUploadResponse fileUpload(FileUploadParams params,int nodeId) throws FileMgrException;
FileDownloadResponse fileDownload(String filePath, String txHash, Account account, int nodeId) throws FileMgrException;
FileDownloadResponse fileDownload(String filePath, String fileHash, String fileOwner, Account account, int nodeId) throws FileMgrException;
Request fileInfoUpdate(String fileHash, int[] nodeIdList, String[] userList, String description, Account account, int... nodeIds);
Request filePush(String fileHash, int[] pushNodes, Account account, int nodeId);
Request getFileExtraByFilter(String fileOwner, String fileHash, int... nodeIds);
Request getFileExtraByTxHash(String txHash, int... nodeIds);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy