aboutsummaryrefslogtreecommitdiffstats
path: root/aria/aria-rest-java-client/src/main/java
diff options
context:
space:
mode:
authordfilppi <dewayne@cloudify.co>2018-02-21 22:34:16 +0000
committerdfilppi <dewayne@cloudify.co>2018-02-21 22:34:16 +0000
commit6ce7e33eec5c63df024d33802b8afeb08d38cefe (patch)
treeea0c36c51c9554fc10654fc6709b79a13821f7b3 /aria/aria-rest-java-client/src/main/java
parent6000217dfd1af031823e21c11f3fdd4a631fac01 (diff)
ARIA REST client bugs
Change-Id: Ie3f1846589b5563707f4ab71406900c4f12ba0be Issue-ID: SO-440 Signed-off-by: DeWayne Filppi <dewayne@cloudify.co>
Diffstat (limited to 'aria/aria-rest-java-client/src/main/java')
-rw-r--r--aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/AriaClientFactory.java2
-rw-r--r--aria/aria-rest-java-client/src/main/java/com/gigaspaces/aria/rest/client/ServiceTemplateImpl.java15
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
@@ -41,6 +41,14 @@ public class ServiceTemplateImpl implements ServiceTemplate {
}
/**
+ * 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
* @param uri a URI to a CSAR
@@ -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;
}