|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdarx.ReplicantInfo
public class ReplicantInfo
This object contains the information regarding a specific replicant handled by DARX. It is used as a global name for each DarxTask.
Constructor Summary | |
---|---|
ReplicantInfo()
constructs the information container of a task's leader, leaving the fields empty. |
|
ReplicantInfo(java.lang.String url,
int port_nb,
java.lang.String task_name,
int id)
constructs the global identifier of a replica |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this replicant info to an object. |
boolean |
equals(java.lang.Object o)
Compares the specified Object with this info for equality. |
int |
getPortNb()
|
int |
getReplicantID()
|
java.lang.String |
getTaskName()
|
(package private) TaskShellHandle |
getTaskShellHandle()
Retrieves the remote reference to the given replica, ie. the TaskShellHandle corresponding to the
replicant information. |
java.lang.String |
getURL()
|
int |
hashCode()
Who knows when THIS might come in handy... |
boolean |
isAt(java.lang.String l_url,
int l_port_nb)
Returns whether the given location is that of the current ReplicantInfo. |
(package private) void |
parse(java.lang.String info)
parses the given DARX path name String (format: |
void |
setPortNb(int new_port_nb)
|
void |
setReplicantID(int new_id)
|
void |
setTaskName(java.lang.String new_task_name)
|
void |
setURL(java.lang.String new_url)
|
(package private) java.lang.String |
textifyDarxName()
creates the unique DARX replicant name corresponding to the current ReplicantInfo. |
(package private) java.lang.String |
textifyDarxPath()
creates the unique DARX path corresponding to the current ReplicantInfo. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ReplicantInfo()
ReplicantInfo(java.lang.String url, int port_nb, java.lang.String task_name, int id)
Method Detail |
---|
public java.lang.String getURL()
public int getPortNb()
public java.lang.String getTaskName()
public int getReplicantID()
public void setURL(java.lang.String new_url)
public void setPortNb(int new_port_nb)
public void setTaskName(java.lang.String new_task_name)
public void setReplicantID(int new_id)
void parse(java.lang.String info)
java.lang.String textifyDarxName()
java.lang.String textifyDarxPath()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the object (info) to be compared
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to be compared (hopefully a
ReplicationInfo
)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAt(java.lang.String l_url, int l_port_nb)
TaskShellHandle getTaskShellHandle() throws java.rmi.RemoteException
TaskShellHandle
corresponding to the
replicant information.
java.rmi.RemoteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |