org.quartz.locality.constraint
Class OsConstraint
java.lang.Object
org.quartz.locality.constraint.OsConstraint
- All Implemented Interfaces:
- Serializable, Constraint<OsConstraint.Operator,OsConstraint.OS>
public class OsConstraint
- extends Object
- implements Constraint<OsConstraint.Operator,OsConstraint.OS>
Constraint to a specific operating system
- Author:
- Alex Snaps
- See Also:
- Serialized Form
LINUX
public static final OsConstraint LINUX
OSX
public static final OsConstraint OSX
WINDOWS
public static final OsConstraint WINDOWS
SOLARIS
public static final OsConstraint SOLARIS
OsConstraint
public OsConstraint(OsConstraint.Operator operator,
OsConstraint.OS targetedOs)
getTargetedOs
public OsConstraint.OS getTargetedOs()
- Getter to targeted OS
- Returns:
- targeted OS
matches
public boolean matches()
- Evaluate against current node
- Returns:
- true is OS matches
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
matches
public boolean matches(OsConstraint.OS actual)
- Parameters:
TODO
-
- Returns:
Copyright 2001-2013, Terracotta, Inc.