API EMOTIVE (RESTful interface)

Commons

Environment (Compute + Scheduling info)
Compute
Network
JSDL
List<Object>

Scheduler – Server

It’s recommended to see “SimpleSchedulerREST.java” for more details

String createEnvironment (Map<String, Object>);
http://localhost:8080/Scheduler/environments?envID=id POST -> Consumed: application/xml Respose created amb la URI

void terminateEnvironment(envID);
http://localhost:8080/Scheduler/environments/[EnvID] DELETE

Compute/List<Compute> getEnvironment(envID);
http://localhost:8080/Scheduler/environments/[EnvID] GET ->Produces: application/xml
http://localhost:8080/Scheduler/environments/all GET ->Produces: application/xml

List<String> getEnvironments()
http://localhost:8080/Scheduler/environments/ GET -> Produces:application/xml

String getEnvironmentStatus(envID);
http://localhost:8080/Scheduler/environments/[EnvID]/status GET ->Produces: text/plain

List<Object> getActivities(envID);
http://localhost:8080/Scheduler/environments/[EnvID]/activities/ GET ->Produces: application/xml

String submitActivity(envID, jdsl)
http://localhost:8080/Scheduler/environments/[EnvID] POST -> Consumes: application/xml Respose created amb la URI

void cancelActivity(envID, taskID)
http://localhost:8080/Scheduler/environments/[EnvID]/[TaskID] DELETE

Object getActivityStatus(envID)
http://localhost:8080/Scheduler/environments/[EnvID]/[TaskID] GET -> Produces: application/xml

List<Object> getAllActivities()
http://localhost:8080/Scheduler/activities/ GET -> Produces: application/xml

VtM (VRMM) – Server

It’s recommended to see “VtMREST.java” for more details:

create
http://localhost:8080/VtM/ POST -> Consumes: application/xml
destroy
http://localhost:8080/VtM/[VMID] DELETE
isReady
http://localhost:8080/VtM/[VMID] GET
getDomain
http://localhost:8080/VtM/[VMID] GET
getDomains
http://localhost:8080/VtM/ GET
getKey
http://localhost:8080/VtM/[VMID]/key GET

checkpoint
http://localhost:8080/VtM/[VMID]/checkpoint PUT
recover
http://localhost:8080/VtM/recover?vm=VMID POST

migrate
http://localhost:8080/VtM/[VMID]?dst=pcperot PUT
migrateIn

http://localhost:8080/VtM/[VMID]/migrate

migrateOut

http://localhost:8080/VtM/[VMID]/migrate

prepareMigrateOut

http://localhost:8080/VtM/[VMID]/migrate

runTask
http://localhost:8080/VtM/[VMID]/ POST
getTaskStatus
http://localhost:8080/VtM/[VMID]/[TASKID] GET
cancelTask
http://localhost:8080/VtM/[VMID]/[TASKID] DELETE

getTasks
http://localhost:8080/VtM/[VMID]/tasks GET
getAllTasks
http://localhost:8080/VtM/tasks GET

getMeasuredData
http://localhost:8080/VtM/data GET
getMeasuredData
http://localhost:8080/VtM/[VMID]/data GET

VRMMScheduler – Server

void nodeUp
http://pcsiset.edx:8080/Scheduler/resources/?node=vtm://localhost:8080 POST Respose created amb la URI
void nodeDown
http://pcsiset.edx:8080/Scheduler/resources/?node=nodeId&cause=cause DELETE
http://pcsiset.edx:8080/Scheduler/resources/?node=vtm://localhost:8080&cause=cause DELETE
List<Object> getNodes()
http://pcsiset.edx:8080/Scheduler/resources/ GET
String getLocation(String id)
http://pcsiset.edx:8080/Scheduler/ GET