Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Commit b15bc32

Browse files
authored
make AssignableVirtualMachine public so that it can be used in TaskScheduler.withAssignableVMsEvaluator (#185)
1 parent 4d26cf8 commit b15bc32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fenzo-core/src/main/java/com/netflix/fenzo/AssignableVirtualMachine.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* This class represents a VM that contains resources that can be assigned to tasks.
3434
*/
35-
class AssignableVirtualMachine implements Comparable<AssignableVirtualMachine>{
35+
public class AssignableVirtualMachine implements Comparable<AssignableVirtualMachine>{
3636

3737
/* package */ static final String PseuoHostNamePrefix = "FenzoPsueodHost-";
3838

@@ -831,7 +831,7 @@ public Map<String, TaskTracker.ActiveTask> getAllCurrentlyAssignedTasks() {
831831
};
832832
}
833833

834-
VirtualMachineCurrentState getVmCurrentState() {
834+
public VirtualMachineCurrentState getVmCurrentState() {
835835
final List<Protos.Offer> offers = new LinkedList<>();
836836
for (VirtualMachineLease l: leasesMap.values()) {
837837
offers.add(l.getOffer());

0 commit comments

Comments
 (0)