All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.pattern.ItinEntry
java.lang.Object
|
+----ajanta.pattern.Pattern
|
+----ajanta.pattern.ItinEntry
- public class ItinEntry
- extends Pattern
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.
-
hostURN
- URN of the destination server
-
ItinEntry()
- It initializes hostURN and action to null
-
ItinEntry(URN, String, Class[], Object[])
-
-
currentEntry()
-
-
next(AgentEnv)
- If the status of the ItinEntry is not equal to DONE then it migrates the agent to
the specified host using AgentEnv go primitive
-
print()
- Print destination server name and the status of the ItinEntry
-
reset()
- Set the status of the ItinEntry to NOTDONE
-
scan()
- Empty method...to be defined in derived classes
-
toString()
- return name of the destination server
hostURN
public URN hostURN
- URN of the destination server
ItinEntry
public ItinEntry()
- It initializes hostURN and action to null
ItinEntry
public ItinEntry(URN name,
String method,
Class formal[],
Object actual[])
- Parameters:
- name - URN of the destination server
- method - name of the method to be executed
- formal - array of method's parameter classes
- actual - array of method's parameter objects
next
protected int next(AgentEnv host) throws UnknownHostException
- If the status of the ItinEntry is not equal to DONE then it migrates the agent to
the specified host using AgentEnv go primitive
- Overrides:
- next in class Pattern
reset
protected void reset()
- Set the status of the ItinEntry to NOTDONE
- Overrides:
- reset in class Pattern
scan
protected void scan()
- Empty method...to be defined in derived classes
- Overrides:
- scan in class Pattern
toString
public String toString()
- return name of the destination server
- Overrides:
- toString in class Object
currentEntry
public ItinEntry currentEntry()
- Returns:
- if the status is not equal to DONE then return reference to itself( this )
else return null
print
public void print()
- Print destination server name and the status of the ItinEntry
- Overrides:
- print in class Pattern
All Packages Class Hierarchy This Package Previous Next Index