git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@5261 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d756cc37f0
commit
ddef231856
|
@ -7,7 +7,11 @@ import java.util.ArrayList;
|
||||||
import java.util.Hashtable;
|
import java.util.Hashtable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.xml.rpc.ServiceException;
|
||||||
|
|
||||||
import org.gcube.common.core.faults.GCUBEFault;
|
import org.gcube.common.core.faults.GCUBEFault;
|
||||||
|
import org.gcube.vremanagement.vremanager.stubs.vremanager.VREManagerPortType;
|
||||||
|
import org.gcube.vremanagement.vremanager.stubs.vremanager.service.VREManagerServiceAddressingLocator;
|
||||||
import org.gcube.vremanagement.vremodeler.db.DBInterface;
|
import org.gcube.vremanagement.vremodeler.db.DBInterface;
|
||||||
import org.gcube.vremanagement.vremodeler.stubs.CollectionArray;
|
import org.gcube.vremanagement.vremodeler.stubs.CollectionArray;
|
||||||
import org.gcube.vremanagement.vremodeler.stubs.FunctionalityIDArray;
|
import org.gcube.vremanagement.vremodeler.stubs.FunctionalityIDArray;
|
||||||
|
@ -429,8 +433,23 @@ public class ModelerService {
|
||||||
* @return
|
* @return
|
||||||
* @throws RemoteException -
|
* @throws RemoteException -
|
||||||
*/
|
*/
|
||||||
public void deployVRE() throws RemoteException{
|
public void deployVRE() throws GCUBEFault{
|
||||||
/*DBInterface.ExecuteUpdate("UPDATE DL SET STATUS='Deploying' WHERE DL.id='"+getResource().getId()+"';");
|
try {
|
||||||
|
DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='Deploying' WHERE VRE.id='"+getResource().getId()+"';");
|
||||||
|
} catch (ResourceException e1) {
|
||||||
|
throw new GCUBEFault(e1);
|
||||||
|
}
|
||||||
|
|
||||||
|
VREManagerServiceAddressingLocator vreManAL= new VREManagerServiceAddressingLocator();
|
||||||
|
try {
|
||||||
|
VREManagerPortType vreManagerPT=vreManAL.getVREManagerPortTypePort();
|
||||||
|
|
||||||
|
|
||||||
|
} catch (ServiceException e) {
|
||||||
|
throw new GCUBEFault(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
DLManagementFactoryServiceAddressingLocator dlMan=new DLManagementFactoryServiceAddressingLocator();
|
DLManagementFactoryServiceAddressingLocator dlMan=new DLManagementFactoryServiceAddressingLocator();
|
||||||
try {
|
try {
|
||||||
//retreive and connect to the DLManagement
|
//retreive and connect to the DLManagement
|
||||||
|
|
Loading…
Reference in New Issue