Commit 89b82dd1 authored by Ali Fahs's avatar Ali Fahs
Browse files

adding the skeleton for BYON endpoints and classes

parent e28d6389
Pipeline #13708 passed with stage
in 2 minutes and 5 seconds
......@@ -340,6 +340,7 @@ public class PAGateway {
}
});
return filteredNodeCandidates;
//TODO: add BYON nodes to the NodeCandidates List
}
/**
......@@ -541,6 +542,38 @@ public class PAGateway {
return 0;
}
/**
* Register new BYON nodes passed as ByonDefinition object
* @param newByonNode an object of class ByonDefinition that contains the detials of the nodes to be registered.
* @param jobId A constructed job identifier
* @return ByonNode an object that contains information about the registered Node
*/
public ByonNode registerNewByonNode(ByonDefinition newByonNode, String jobId) {
return null;
//TODO
}
/**
* Return the List of registered BYON nodes
* @param jobId A constructed job identifier
* @return List of ByonNode objects that contains information about the registered Nodes
*/
public List<ByonNode> getByonNodeList(String jobId) {
return null;
//TODO
}
/**
* Adding BYON nodes to a job component
* @param byonIdPerComponent a mapping between byon nodes and job components
* @param jobId A constructed job identifier
* @return 0 if nodes has been added properly. A greater than 0 value otherwise.
*/
public int addByonNodes(Map<String, String> byonIdPerComponent, String jobId) {
return 0;
//TODO
}
/**
* Undeploy clouds
* @param cloudIDs List of cloud IDs to remove
......@@ -625,6 +658,16 @@ public class PAGateway {
});
}
/**
* Remove Byon nodes
* @param byonId the id of the node to be removed
* @return true if the deletion was done with no errors, false otherwise
*/
public Boolean deleteByonNode(String byonId) {
return null;
//TODO
}
/**
* Stop jobs
* @param jobIDs List of job IDs to stop
......
package org.activeeon.morphemic.model;
public class ByonDefinition {
}
package org.activeeon.morphemic.model;
public class ByonNode {
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment