Serialized Form


Package darx

Class darx.ActiveReplicationStrategy extends ReplicationStrategy implements Serializable

Class darx.Darx extends java.rmi.server.UnicastRemoteObject implements Serializable

Class darx.Darx_Stub extends java.rmi.server.RemoteStub implements Serializable

serialVersionUID: 2L

Class darx.DarxCommInterface extends java.lang.Object implements Serializable

Serialized Fields

msgNbr

int msgNbr
The sequence number of the next message.


name

java.lang.String name
The name of the owner of this instance; generally the name of the corresponding task.

Class darx.DarxException extends java.rmi.RemoteException implements Serializable

Class darx.DarxMalformedURLException extends DarxException implements Serializable

Serialized Fields

url

java.lang.String url
The faulty URL which caused this exception to be thrown.

Class darx.DarxMessage extends java.lang.Object implements Serializable

Serialized Fields

msg

java.io.Serializable msg
The body of the message. NB: The objects associated to messages in the supported MASs have to implement Serializable


senderName

java.lang.String senderName
The identity of the sender. It is obtained through the DarxCommInterface of the sender.


serialNumber

int serialNumber
The ordering number of the message.

Class darx.DarxTask extends java.lang.Object implements Serializable

Serialized Fields

name

java.lang.String name
the name of the generic task pursued by this replica.


leader

boolean leader
the status of this replica in the group.


server

DarxServer server
The reference to the DARX server which hosts this replica.
This attribute is set whilst activating the replica.

See Also:
DarxTask#activateTask()

handle

RemoteTask handle
the handle to the latest agent corresponding to this DarxTask. It references a TaskShell currently running on a DARX server; namely the last one that was activated by this instance. The reason for the existence of this attribute is to prevent the destruction of the TaskShell by the GC before it is correctly registered.

See Also:
TaskShell, Darx.startTask(DarxTask)

Class darx.IllegalLeaderRemovalException extends DarxException implements Serializable

Serialized Fields

replicant_info

ReplicantInfo replicant_info
the replicant whose removal failed.

Class darx.IllegalReplicationException extends DarxException implements Serializable

Serialized Fields

url

java.lang.String url
The URL of the host where the replication is attempted.


port_nb

int port_nb
The port number of the host where the replication is attempted.


task_name

java.lang.String task_name
The name of the task which corresponds to the replication group for which the invalid replication is attempted.

Class darx.InexistentNameException extends DarxException implements Serializable

Serialized Fields

task_name

java.lang.String task_name
the generic name of the agent that can't be found in the application.

Class darx.NameServerImpl_Stub extends java.rmi.server.RemoteStub implements Serializable

serialVersionUID: 2L

Class darx.NoMoreReplicantsException extends DarxException implements Serializable

Serialized Fields

task_name

java.lang.String task_name
The generic name of the agent for which there is no replica present in the application.

Class darx.PassiveReplicationStrategy extends ReplicationStrategy implements Serializable

Serialized Fields

updateDelay

int updateDelay
The update delay, that is the time elapsed between backups.


updater_state

int updater_state
The state of the thread (running, suspended, or dead).


RUNNING

int RUNNING
The state of the thread as: running.


SUSPENDED

int SUSPENDED
The state of the thread as: suspended.


DEAD

int DEAD
The state of the thread as: dead.

Class darx.RemoteTask extends java.lang.Object implements Serializable

Serialized Fields

handle

DarxHandle handle
The handle for the leader of the group which represents the task


leader_info

ReplicantInfo leader_info
The information concerning the leader of the task


task_name

java.lang.String task_name
the generic name of the task

Class darx.ReplicantInfo extends java.lang.Object implements Serializable

Serialized Fields

url

java.lang.String url
the URL of the current host for this replica


port_nb

int port_nb
the port number of the current host for this replica


task_name

java.lang.String task_name
the generic task name to which this replica is related


id

int id
the identifier for this replica

Class darx.ReplicationGroupInfo extends java.lang.Object implements Serializable

Serialized Fields

task_name

java.lang.String task_name
the name of the application task represented by the replication group.


leader

int leader
the identification of the replication group leader. A value of -1 means that the group is empty.


members

java.util.Hashtable<K,V> members
the list of the replication group members. key: replicant number accessed info: replicant global naming info

Class darx.ReplicationPolicy extends java.lang.Object implements Serializable

Serialized Fields

criticity

int criticity
The criticity of the replication group to which this policy is applied.


task_name

java.lang.String task_name
The name of the task represented by the replication group.


leader_info

ReplicantInfo leader_info
The info concerning the leader of the replication group.


replication_number

int replication_number
The unique number used in the darx-pathname of the latest created replicant.


members

java.util.Vector<E> members
The information concerning the members of the replication group; it is a list of replicant infos ordered by decreasing degree of consistency.
Therefore it contains at least one element: the leader, of index value 0.

See Also:
ReplicantInfo

strategies

java.util.Vector<E> strategies
The unordered table of strategies applied in this policy. Reminder: every strategy possesses the list of group members
(Hashtable: ReplicantInfo <=> TaskShellHandle)
to which it is applied.

See Also:
ReplicationStrategy

Class darx.ReplicationStrategy extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Controles the deserialization of this object, during the replication

Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

type

int type
The strategy type, that is whether it is active or passive.


role

int role
The role of the strategy owner (leader, active or passive)


info

ReplicantInfo info
The information concerning the replication group leader


replicants

java.util.Hashtable<K,V> replicants
The list of remote replicants participating to the current replication group, the owner of this instance not included. key: replicant info value: remote replicant handle


rep_number

int rep_number
The unique number used in the darx-pathname of the latest created replicant.

Class darx.TaskShell_Stub extends java.rmi.server.RemoteStub implements Serializable

serialVersionUID: 2L

Class darx.UnknownReplicantException extends DarxException implements Serializable

Serialized Fields

location

java.lang.String location
The URL of the host where the replicant is being looked for.


task_name

java.lang.String task_name
The name of the task which corresponds to the replication group of the searched replicant.