Browse files

detail proof of concept

  • Loading branch information...
1 parent f178604 commit d9e0e380c51648514ab1fbfb4729ffdef91886b8 @timf timf committed Sep 29, 2011
View
2 service-api/java/source/src/org/nimbustools/api/_repr/vm/_VM.java
@@ -44,4 +44,6 @@
public void setSpotInstanceRequestID(String reqID);
public void setClientToken(String clientToken);
+
+ public void setDetails(String details);
}
View
8 service-api/java/source/src/org/nimbustools/api/defaults/repr/vm/DefaultVM.java
@@ -48,6 +48,7 @@
private String lifeCycle;
private String spotReqID;
private String clientToken;
+ private String details;
// -------------------------------------------------------------------------
@@ -186,6 +187,13 @@ public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
+ public void setDetails(String details) {
+ this.details = details;
+ }
+
+ public String getDetails() {
+ return this.details;
+ }
// -------------------------------------------------------------------------
// DEBUG STRING
View
2 service-api/java/source/src/org/nimbustools/api/repr/vm/VM.java
@@ -37,4 +37,6 @@
public String getSpotInstanceRequestID();
String getClientToken();
+
+ public String getDetails();
}
View
9 service/service/java/source/src/org/globus/workspace/persistence/DataConvert.java
@@ -230,6 +230,7 @@ public VM getVM(InstanceResource resource) throws CannotTranslateException {
vm.setState(this.getState(resource));
vm.setCreator(this.getCreator(resource));
vm.setClientToken(resource.getClientToken());
+ vm.setDetails(this.getDetails(resource.getVM()));
if(resource.getVM().isPreemptable()){
vm.setLifeCycle(VMConstants.LIFE_CYCLE_SPOT);
@@ -534,6 +535,14 @@ public ResourceAllocation getRA(VirtualMachine vm)
return ra;
}
+ private String getDetails(VirtualMachine vm)
+ throws CannotTranslateException {
+
+ if (vm == null) {
+ throw new CannotTranslateException("null VirtualMachine?");
+ }
+ return vm.getNode();
+ }
// -------------------------------------------------------------------------
// SCHEDULE RELATED

0 comments on commit d9e0e38

Please sign in to comment.