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.


Variable Index

 o hostURN
URN of the destination server

Constructor Index

 o ItinEntry()
It initializes hostURN and action to null
 o ItinEntry(URN, String, Class[], Object[])

Method Index

 o currentEntry()
 o 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
 o print()
Print destination server name and the status of the ItinEntry
 o reset()
Set the status of the ItinEntry to NOTDONE
 o scan()
Empty method...to be defined in derived classes
 o toString()
return name of the destination server

Variables

 o hostURN
 public URN hostURN
URN of the destination server

Constructors

 o ItinEntry
 public ItinEntry()
It initializes hostURN and action to null

 o 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

Methods

 o 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
 o reset
 protected void reset()
Set the status of the ItinEntry to NOTDONE

Overrides:
reset in class Pattern
 o scan
 protected void scan()
Empty method...to be defined in derived classes

Overrides:
scan in class Pattern
 o toString
 public String toString()
return name of the destination server

Overrides:
toString in class Object
 o currentEntry
 public ItinEntry currentEntry()
Returns:
if the status is not equal to DONE then return reference to itself( this ) else return null
 o 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