org.quartz.locality.constraint
Class OsConstraint

java.lang.Object
  extended by 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

Nested Class Summary
static class OsConstraint.Operator
           
static class OsConstraint.OS
           
 
Field Summary
static OsConstraint LINUX
           
static OsConstraint OSX
           
static OsConstraint SOLARIS
           
static OsConstraint WINDOWS
           
 
Constructor Summary
OsConstraint(OsConstraint.Operator operator, OsConstraint.OS targetedOs)
           
 
Method Summary
 boolean equals(Object obj)
           
 OsConstraint.OS getTargetedOs()
          Getter to targeted OS
 int hashCode()
           
 boolean matches()
          Evaluate against current node
 boolean matches(OsConstraint.OS actual)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINUX

public static final OsConstraint LINUX

OSX

public static final OsConstraint OSX

WINDOWS

public static final OsConstraint WINDOWS

SOLARIS

public static final OsConstraint SOLARIS
Constructor Detail

OsConstraint

public OsConstraint(OsConstraint.Operator operator,
                    OsConstraint.OS targetedOs)
Method Detail

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.