Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DGC abstraction is used for the server side of the distributed garbage collection algorithm. This interface contains the two methods: dirty and clean. A dirty call is made when a remote reference is unmarshaled in a client (the client is indicated by its VMID). A corresponding clean call is made when no more references to the remote reference exist in the client. A failed dirty call must schedule a strong clean call so that the call's sequence number can be retained in order to detect future calls received out of order by the distributed garbage collector. A reference to a remote object is leased for a period of time by the client holding the reference. The lease period starts when the dirty call is received. It is the client's responsibility to renew the leases, by making additional dirty calls, on the remote references it holds before such leases expire. If the client does not renew the lease before it expires, the distributed garbage collector assumes that the remote object is no longer referenced by that client.
Method Summary | |
void |
clean(ObjID[] ids,
long sequenceNum,
VMID vmid,
boolean strong)
The clean call removes the 'vmid' from the reference list of each remote object indicated in 'id's. |
Lease |
dirty(ObjID[] ids,
long sequenceNum,
Lease lease)
The dirty call requests leases for the remote object references associated with the object identifiers contained in the array 'ids'. |
Method Detail |
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException
ids
- IDs of objects to mark as referenced by calling clientsequenceNum
- sequence numberlease
- requested leaseRemoteException
- if dirty call failspublic void clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong) throws RemoteException
ids
- IDs of objects to mark as unreferenced by calling clientsequenceNum
- sequence numbervmid
- client VMIDstrong
- make 'strong' clean callRemoteException
- if clean call fails
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.