/** * Returns a {@link Predicate} that returns <code>true</code> when passed a * {@link Machine} that is an active pool member -- it has been allocated * from the underlying infrastructure ({@link MachineState#REQUESTED}, * {@link MachineState#PENDING} or {@link MachineState#RUNNING}) and is an * active pool member ({@link MembershipStatus#isActive()}). * * @return */ public static Predicate<Machine> isActiveMember() { return new ActiveMemberPredicate(); }