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

Commit

Permalink
Expose agent disable time via VirtualMachineCurrentState interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Bak committed May 26, 2016
1 parent 7aaa0f0 commit e369946
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Thumbs.db
# Build output directies
target/
build/
classes/

# IntelliJ specific files/directories
out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,10 @@ public Collection<TaskAssignmentResult> getTasksCurrentlyAssigned() {
public Collection<TaskRequest> getRunningTasks() {
return Collections.unmodifiableCollection(previouslyAssignedTasksMap.values());
}
@Override
public long getDisabledUntil() {
return disabledUntil;
}
};
}

Expand All @@ -763,6 +767,10 @@ public Collection<TaskAssignmentResult> getTasksCurrentlyAssigned() {
public Collection<TaskRequest> getRunningTasks() {
return Collections.unmodifiableCollection(previouslyAssignedTasksMap.values());
}
@Override
public long getDisabledUntil() {
return disabledUntil;
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,11 @@ public interface VirtualMachineCurrentState {
* @return a collection of the tasks running on this host
*/
Collection<TaskRequest> getRunningTasks();

/**
* Returns the time until which the given host remains disabled.
*
* @return time until which the host will remain disabled or 0 if the host is enabled
*/
long getDisabledUntil();
}

0 comments on commit e369946

Please sign in to comment.