org.jclouds.compute.predicates
Class OperatingSystemPredicates

java.lang.Object
  extended by org.jclouds.compute.predicates.OperatingSystemPredicates

public class OperatingSystemPredicates
extends Object

Container for operating system filters (predicates). This class has static methods that create customized predicates to use with ComputeService.

Author:
Adrian Cole

Constructor Summary
OperatingSystemPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<OperatingSystem> any()
          return everything.
static com.google.common.base.Predicate<OperatingSystem> is64Bit()
          return true if this is a 64bit os.
static com.google.common.base.Predicate<OperatingSystem> isUnix()
          evaluates true if the OperatingSystem is unix like
static com.google.common.base.Predicate<OperatingSystem> supportsApt()
          evaluates true if the OperatingSystem supports the apt installer
static com.google.common.base.Predicate<OperatingSystem> supportsYum()
          evaluates true if the OperatingSystem supports the yum installer
static com.google.common.base.Predicate<OperatingSystem> supportsZypper()
          evaluates true if the OperatingSystem supports the zypper installer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatingSystemPredicates

public OperatingSystemPredicates()
Method Detail

isUnix

public static com.google.common.base.Predicate<OperatingSystem> isUnix()
evaluates true if the OperatingSystem is unix like


supportsApt

public static com.google.common.base.Predicate<OperatingSystem> supportsApt()
evaluates true if the OperatingSystem supports the apt installer


supportsYum

public static com.google.common.base.Predicate<OperatingSystem> supportsYum()
evaluates true if the OperatingSystem supports the yum installer


supportsZypper

public static com.google.common.base.Predicate<OperatingSystem> supportsZypper()
evaluates true if the OperatingSystem supports the zypper installer


any

public static com.google.common.base.Predicate<OperatingSystem> any()
return everything.


is64Bit

public static com.google.common.base.Predicate<OperatingSystem> is64Bit()
return true if this is a 64bit os.



Copyright © 2009-2011 jclouds. All Rights Reserved.