Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DGC extends Remote
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.
Modifier and Type | Method and Description |
---|---|
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 |
---|
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 failsvoid 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
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.