forked from MDSLab/OSFFM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { | ||
|
||
//<editor-fold defaultstate="collapsed" desc="Variable definitions"> | ||
private String SiteName; | ||
private String Ip, Port; | ||
private String site_proxyip,site_proxyport; | ||
//</editor-fold> | ||
|
||
//<editor-fold defaultstate="collapsed" desc="Setter & Getter"> | ||
|
||
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; | ||
} | ||
|
||
//</editor-fold> | ||
|
||
|
||
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |