From 6ce7e33eec5c63df024d33802b8afeb08d38cefe Mon Sep 17 00:00:00 2001 From: dfilppi Date: Wed, 21 Feb 2018 22:34:16 +0000 Subject: ARIA REST client bugs Change-Id: Ie3f1846589b5563707f4ab71406900c4f12ba0be Issue-ID: SO-440 Signed-off-by: DeWayne Filppi --- .../gigaspaces/aria/rest/client/AriaClientFactory.java | 2 +- .../gigaspaces/aria/rest/client/ServiceTemplateImpl.java | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/AriaClientFactory.java b/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/AriaClientFactory.java index a97384e084..7241b2ac65 100644 --- a/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/AriaClientFactory.java +++ b/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/AriaClientFactory.java @@ -25,7 +25,7 @@ import java.net.URL; */ public class AriaClientFactory { - AriaClient createRestClient(String protocol, String address, int port, String version){ + public AriaClient createRestClient(String protocol, String address, int port, String version){ return new AriaRestClient(protocol, address, port, version); } } diff --git a/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/ServiceTemplateImpl.java b/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/ServiceTemplateImpl.java index a41d5b7236..562fcb232e 100644 --- a/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/ServiceTemplateImpl.java +++ b/aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/ServiceTemplateImpl.java @@ -40,6 +40,14 @@ public class ServiceTemplateImpl implements ServiceTemplate { this.uri=uri; } + /** + * Construct service template from CSAR byte array + */ + public ServiceTemplateImpl(String name, byte[] csar){ + this.csar_blob = csar; + this.name = name; + } + /** * Construct an instance based on CSAR * @param name a textual name for the template @@ -53,13 +61,6 @@ public class ServiceTemplateImpl implements ServiceTemplate { this.description=description; } - /** - * Construct an instance based on CSAR array - */ - public ServiceTemplateImpl(byte[] csar_bytes) { - this.csar_blob = csar_bytes; - } - public int getId(){ return id; } -- cgit 1.2.3-korg