|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ajanta.pattern.Pattern
|
+--ajanta.pattern.ItinEntry
The basic unit of Migartion is defined in terms of ItinEntry. It is a singleton pattern. It specifies the destination server to migrate to, and the action to be performed at the host.
| Field Summary | |
ajanta.naming.URN |
hostURN
URN of the destination server |
| Fields inherited from class ajanta.pattern.Pattern |
action, DONE, FAILED, NOTDONE, status |
| Constructor Summary | |
ItinEntry()
It initializes hostURN and action to null |
|
ItinEntry(ajanta.naming.URN name,
java.lang.String method,
java.lang.Class[] formal,
java.lang.Object[] actual)
|
|
| Method Summary | |
ajanta.pattern.ItinEntry |
currentEntry()
|
protected int |
next(ajanta.server.AgentEnv host)
If the status of the ItinEntry is not equal to DONE then it migrates the agent to the specified host using AgentEnv go primitive |
void |
print()
Print destination server name and the status of the ItinEntry |
protected void |
reset()
Set the status of the ItinEntry to NOTDONE |
protected void |
scan()
Empty method...to be defined in derived classes |
java.lang.String |
toString()
return name of the destination server |
| Methods inherited from class ajanta.pattern.Pattern |
getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public ajanta.naming.URN hostURN
| Constructor Detail |
public ItinEntry()
public ItinEntry(ajanta.naming.URN name,
java.lang.String method,
java.lang.Class[] formal,
java.lang.Object[] actual)
name - URN of the destination servermethod - name of the method to be executedformal - array of method's parameter classesactual - array of method's parameter objects| Method Detail |
protected int next(ajanta.server.AgentEnv host)
throws java.net.UnknownHostException
next in class Patternjava.net.UnknownHostExceptionprotected void reset()
reset in class Patternprotected void scan()
scan in class Patternpublic java.lang.String toString()
toString in class java.lang.Objectpublic ajanta.pattern.ItinEntry currentEntry()
public void print()
print in class Pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||