All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.pattern.Pattern
java.lang.Object
|
+----ajanta.pattern.Pattern
- public abstract class Pattern
- extends Object
- implements Cloneable, Serializable
Pattern is a abstract class. Every pattern is associated with an action
that the agent performs at the host it visits. This is overridden to
specialize the action.
-
action
- MethodSpec of the action that an agent perform on a host
-
DONE
- Pattern action was successfuly completed
-
FAILED
- Pattern action failed due to some reason
-
NOTDONE
- Pattern action is yet to be performed
-
status
- Current status of the pattern
-
Pattern()
-
-
getName()
-
-
next(AgentEnv)
- The pattern traversal is determined by the abstarct method next.
-
print()
- It prints inforamtion about the pattern i.e its status, destination server etc
-
reset()
- It reset the current state of the pattern to initial state
-
scan()
- It is used to scan the pattern
-
setName(String)
- It sets the name of the pattern to the name passed as argument
DONE
public static final int DONE
- Pattern action was successfuly completed
NOTDONE
public static final int NOTDONE
- Pattern action is yet to be performed
FAILED
public static final int FAILED
- Pattern action failed due to some reason
status
public int status
- Current status of the pattern
action
public MethodSpec action
- MethodSpec of the action that an agent perform on a host
Pattern
public Pattern()
next
protected abstract int next(AgentEnv host) throws UnknownHostException
- The pattern traversal is determined by the abstarct method next. It captures
the notion of next hop in the migration path of the agent. Each pattern has its own
semantics to determine the next hop
reset
protected abstract void reset()
- It reset the current state of the pattern to initial state
scan
protected abstract void scan()
- It is used to scan the pattern
print
public abstract void print()
- It prints inforamtion about the pattern i.e its status, destination server etc
setName
public void setName(String name)
- It sets the name of the pattern to the name passed as argument
getName
public String getName()
- Returns:
- If the name is not null it returns the name of pattern else Agent
All Packages Class Hierarchy This Package Previous Next Index