From 41a2bbed31721a8c6720bb068f2e9027908dafdf Mon Sep 17 00:00:00 2001 From: Giuseppe Tricomi Date: Mon, 29 Aug 2016 16:24:05 +0200 Subject: [PATCH] added missing files --- src/java/MDBInt/FederationAgentInfo.java | 85 ++++++++++++++++++++ src/java/com/edw/rmi/RMIServerInterface.java | 24 ++++++ 2 files changed, 109 insertions(+) create mode 100644 src/java/MDBInt/FederationAgentInfo.java create mode 100644 src/java/com/edw/rmi/RMIServerInterface.java diff --git a/src/java/MDBInt/FederationAgentInfo.java b/src/java/MDBInt/FederationAgentInfo.java new file mode 100644 index 0000000..9928a7c --- /dev/null +++ b/src/java/MDBInt/FederationAgentInfo.java @@ -0,0 +1,85 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package MDBInt; + +import java.util.ArrayList; +import org.json.JSONException; +import org.json.JSONObject; + +/** + * + * @author Giuseppe Tricomi + */ +public class FederationAgentInfo { + + // + private String SiteName; + private String Ip, Port; + private String site_proxyip,site_proxyport; +// + +// + + public String getSite_proxyip() { + return site_proxyip; + } + + public void setSite_proxyip(String site_proxyip) { + this.site_proxyip = site_proxyip; + } + + public String getSite_proxyport() { + return site_proxyport; + } + + public void setSite_proxyport(String site_proxyport) { + this.site_proxyport = site_proxyport; + } + + public String getSiteName() { + return SiteName; + } + + public void setSiteName(String SiteName) { + this.SiteName = SiteName; + } + + public String getIp() { + return Ip; + } + + public void setIp(String Ip) { + this.Ip = Ip; + } + + public String getPort() { + return Port; + } + + public void setPort(String Port) { + this.Port = Port; + } + + // + + + public FederationAgentInfo(String SiteName, String Ip, String Port,String site_proxyip,String site_proxyport) { + this.SiteName = SiteName; + this.Ip = Ip; + this.Port = Port; + this.site_proxyip=site_proxyip; + this.site_proxyport=site_proxyport; + } + public FederationAgentInfo(String json) throws JSONException { + JSONObject j=new JSONObject(json); + this.SiteName = j.getString(SiteName); + this.Ip = j.getString(Ip); + this.Port = j.getString(Port); + this.site_proxyip=j.getString(site_proxyip); + this.site_proxyport=j.getString(site_proxyport); + } +} diff --git a/src/java/com/edw/rmi/RMIServerInterface.java b/src/java/com/edw/rmi/RMIServerInterface.java new file mode 100644 index 0000000..e2f0052 --- /dev/null +++ b/src/java/com/edw/rmi/RMIServerInterface.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.edw.rmi; + +import java.rmi.Remote; +import java.rmi.RemoteException; +import java.util.ArrayList; + +/** + * + * @author agalletta + */ +public interface RMIServerInterface extends Remote{ + + public boolean stackInstantiate(String template,String templateId,String endpoint,String user,String tenant,String password,String region,String idCloud) throws RemoteException; + + + public ArrayList getListResource(String endpoint,String user,String tenant,String password,String templateId) throws RemoteException; + +}