aboutsummaryrefslogtreecommitdiffstats
path: root/aria/aria-rest-java-client
diff options
context:
space:
mode:
Diffstat (limited to 'aria/aria-rest-java-client')
-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;
}