Package i5.las2peer.tools
Class PackageUploader
java.lang.Object
i5.las2peer.tools.PackageUploader
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiduploadServicePackage(PastryNodeImpl node, String serviceJarFilename, String developerAgentXMLFilename, String developerPassword) static voiduploadServicePackage(PastryNodeImpl node, String serviceJarFilename, String developerAgentXMLFilename, String developerPassword, String supplement) static voiduploadServicePackage(PastryNodeImpl node, String serviceName, String serviceVersion, Map<String, byte[]> depHashes, Map<String, byte[]> jarFiles, AgentImpl devAgent, String supplement) static voiduploadServicePackage(PastryNodeImpl node, JarInputStream jarInputStream, AgentImpl devAgent, String supplement) Uploads the complete service (jar) and all its dependencies into the given nodes shared storage to be used for network class loading.
-
Constructor Details
-
PackageUploader
public PackageUploader()
-
-
Method Details
-
uploadServicePackage
public static void uploadServicePackage(PastryNodeImpl node, String serviceJarFilename, String developerAgentXMLFilename, String developerPassword) throws ServicePackageException, EnvelopeAlreadyExistsException -
uploadServicePackage
public static void uploadServicePackage(PastryNodeImpl node, String serviceJarFilename, String developerAgentXMLFilename, String developerPassword, String supplement) throws ServicePackageException, EnvelopeAlreadyExistsException - Parameters:
serviceJarFilename- The service jar that should be uploaded.developerAgentXMLFilename- The developers agent, who is responsible for this service.developerPassword- The password for the developers agent.supplement- additional, optional metadata- Throws:
ServicePackageExceptionEnvelopeAlreadyExistsException- See Also:
-
uploadServicePackage
public static void uploadServicePackage(PastryNodeImpl node, JarInputStream jarInputStream, AgentImpl devAgent, String supplement) throws ServicePackageException, EnvelopeAlreadyExistsException, EthereumException Uploads the complete service (jar) and all its dependencies into the given nodes shared storage to be used for network class loading. The dependencies are read from the "Import-Library" statement inside the jars manifest file. All the files extracted from the jars are signed with the given developers agent to prevent manipulations.- Parameters:
node- The node storage, where the files should be uploaded into.jarInputStream- service JAR as JAR input streamdevAgent- unlocked developer agent- Throws:
ServicePackageException- If an issue occurs with the service jar itself or its dependencies (jars).EnvelopeAlreadyExistsExceptionEthereumException
-
uploadServicePackage
public static void uploadServicePackage(PastryNodeImpl node, String serviceName, String serviceVersion, Map<String, byte[]> depHashes, Map<String, throws SerializationException, CryptoException, EnvelopeException, ServicePackageException, AgentException, EthereumExceptionbyte[]> jarFiles, AgentImpl devAgent, String supplement)
-