jvn.JvnServers Class Reference

Collaboration diagram for jvn.JvnServers:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 JvnServers (JvnRemoteServer server, JvnObject obj) throws JvnException

Public Attributes

LinkedList< JvnRemoteServerjvnListOfServers = new LinkedList<JvnRemoteServer>()
JvnObject jvnObject = null
JvnObjectState lockState = null
Serializable latestJvnObjectContent = null


Detailed Description

This class is used to have the list of servers and corresponding objects. It is used by the JvnObjectImpl class.

Definition at line 86 of file JvnCoordImpl.java.


Constructor & Destructor Documentation

jvn.JvnServers.JvnServers ( JvnRemoteServer  server,
JvnObject  obj 
) throws JvnException

Constructor based on a server and an object. Parameters are trivial, and only pointers are copied (no "new" is done).

Definition at line 91 of file JvnCoordImpl.java.

References jvn.JvnServers.jvnListOfServers, jvn.JvnServers.jvnObject, and jvn.JvnServers.latestJvnObjectContent.

00092         {
00093                 jvnListOfServers.add(server);
00094                 jvnObject = obj;
00095                 if( obj!=null ) {
00096                         try {
00097                                 latestJvnObjectContent = obj.jvnGetObjectState();
00098                         } catch( JvnException e ) {
00099                                 latestJvnObjectContent = null;
00100                         }
00101                 }
00102         }


Member Data Documentation

LinkedList<JvnRemoteServer> jvn.JvnServers.jvnListOfServers = new LinkedList<JvnRemoteServer>()

We have a Set of servers since multiple servers may be holding a copy of a given object (for example, if they're reading)

Definition at line 108 of file JvnCoordImpl.java.

Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().

JvnObject jvn.JvnServers.jvnObject = null

A copy of the object.

Definition at line 113 of file JvnCoordImpl.java.

Referenced by jvn.JvnCoordImpl.jvnLookupObject(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().

JvnObjectState jvn.JvnServers.lockState = null

Lock state, can only be JvnObjectState#STATE_RLOCKT, JvnObjectState#STATE_WLOCKT or JvnObjectState#STATE_NOLOCK

Definition at line 120 of file JvnCoordImpl.java.

Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnCoordImpl.jvnRegisterObject(), and jvn.JvnCoordImpl.jvnServerTerminated().

Serializable jvn.JvnServers.latestJvnObjectContent = null

Latest content of the Serializable content of the object.

Definition at line 125 of file JvnCoordImpl.java.

Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().


The documentation for this class was generated from the following file:
Generated on Wed Jan 2 10:15:58 2008 for Javanaise by  doxygen 1.5.4