@@ -841,29 +841,37 @@ VirtualMachineCurrentState getVmCurrentState() {
841
841
public String getHostname () {
842
842
return hostname ;
843
843
}
844
+
845
+ @ Override
846
+ public String getVMId () {
847
+ return currVMId ;
848
+ }
849
+
844
850
@ Override
845
851
public Map <String , PreferentialNamedConsumableResourceSet > getResourceSets () {
846
852
return resourceSets ;
847
853
}
854
+
848
855
@ Override
849
856
public VirtualMachineLease getCurrAvailableResources () {
850
857
return currTotalLease ;
851
858
}
852
859
853
860
@ Override
854
861
public Collection <Protos .Offer > getAllCurrentOffers () {
855
- System .out .println ("****************************** " );
856
862
return offers ;
857
863
}
858
864
859
865
@ Override
860
866
public Collection <TaskAssignmentResult > getTasksCurrentlyAssigned () {
861
867
return Collections .emptyList ();
862
868
}
869
+
863
870
@ Override
864
871
public Collection <TaskRequest > getRunningTasks () {
865
872
return Collections .unmodifiableCollection (previouslyAssignedTasksMap .values ());
866
873
}
874
+
867
875
@ Override
868
876
public long getDisabledUntil () {
869
877
return disabledUntil ;
@@ -881,10 +889,17 @@ private VirtualMachineCurrentState vmCurrentState() {
881
889
public String getHostname () {
882
890
return hostname ;
883
891
}
892
+
893
+ @ Override
894
+ public String getVMId () {
895
+ return currVMId ;
896
+ }
897
+
884
898
@ Override
885
899
public Map <String , PreferentialNamedConsumableResourceSet > getResourceSets () {
886
900
return resourceSets ;
887
901
}
902
+
888
903
@ Override
889
904
public VirtualMachineLease getCurrAvailableResources () {
890
905
return currTotalLease ;
@@ -899,10 +914,12 @@ public Collection<Protos.Offer> getAllCurrentOffers() {
899
914
public Collection <TaskAssignmentResult > getTasksCurrentlyAssigned () {
900
915
return Collections .unmodifiableCollection (assignmentResults .values ());
901
916
}
917
+
902
918
@ Override
903
919
public Collection <TaskRequest > getRunningTasks () {
904
920
return Collections .unmodifiableCollection (previouslyAssignedTasksMap .values ());
905
921
}
922
+
906
923
@ Override
907
924
public long getDisabledUntil () {
908
925
return disabledUntil ;
0 commit comments