10.05.2015 Views

UNIVERSIDAD DE CASTILLA-LA MANCHA ... - Grupo ARCO

UNIVERSIDAD DE CASTILLA-LA MANCHA ... - Grupo ARCO

UNIVERSIDAD DE CASTILLA-LA MANCHA ... - Grupo ARCO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.5. INCREMENTOS 71<br />

# ifndef M A N A G E R I C E<br />

# define M A N A G E R I C E<br />

#include <br />

#include <br />

module HYDRA {<br />

interface Query {<br />

DeploymentSeq listDeployments ();<br />

Ice :: StringSeq listNodes (string order );<br />

OSimageSeq listImages ();<br />

DelegateSeq listDelegates ();<br />

Ice :: StringSeq listConstraints ();<br />

OSimage getImage (string imgname );<br />

Deployment getDeployment (int depid );<br />

HostDescription getHostInfo (string nodenane );<br />

Ice :: StringSeq getGroup (string name );<br />

void showConfig ();<br />

};<br />

interface Directory extends Query {<br />

int addDeployment ( Deployment dep ) throws ConflictException ,<br />

ObjectNotExistException ;<br />

int addImage ( OSimage img ) throws ConflictException ;<br />

int addConstraint (string prop , string oper , string value );<br />

void modifyDeployment (string oldname , Deployment dep )throws<br />

ObjectNotExistException ;<br />

void updateImage (string oldimage , string newimage ) throws<br />

ObjectNotExistException ;<br />

void deleteDeployment (string name ) throws<br />

ObjectNotExistException ;<br />

void deleteImage (string imgname ) throws<br />

ObjectNotExistException ;<br />

};<br />

};<br />

# endif<br />

void deleteConstraint (int constID ) throws<br />

ObjectNotExistException ;<br />

void setDelegate (string delegate , string group , Ice :: StringSeq<br />

maclist );<br />

void createNodeGroup (string name , Ice :: StringSeq maclist );<br />

Ice :: StringSeq getDirtyNodes (string delegate );<br />

Ice :: StringSeq getImagesForDelegate (string delegatename );<br />

int restoreNode (string macaddress );<br />

void startInstallation ();<br />

Listado 5.5: Slice para Manager

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!