|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.pattern.Pattern
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.
Field Summary | |
ajanta.util.MethodSpec |
action
MethodSpec of the action that an agent perform on a host |
static int |
DONE
Pattern action was successfuly completed |
static int |
FAILED
Pattern action failed due to some reason |
static int |
NOTDONE
Pattern action is yet to be performed |
int |
status
Current status of the pattern |
Constructor Summary | |
Pattern()
|
Method Summary | |
java.lang.String |
getName()
|
protected abstract int |
next(ajanta.server.AgentEnv host)
The pattern traversal is determined by the abstarct method next. |
abstract void |
print()
It prints inforamtion about the pattern i.e its status, destination server etc |
protected abstract void |
reset()
It reset the current state of the pattern to initial state |
protected abstract void |
scan()
It is used to scan the pattern |
void |
setName(java.lang.String name)
It sets the name of the pattern to the name passed as argument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DONE
public static final int NOTDONE
public static final int FAILED
public int status
public ajanta.util.MethodSpec action
Constructor Detail |
public Pattern()
Method Detail |
protected abstract int next(ajanta.server.AgentEnv host) throws java.net.UnknownHostException
java.net.UnknownHostException
protected abstract void reset()
protected abstract void scan()
public abstract void print()
public void setName(java.lang.String name)
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |