org.sapia.ubik.rmi.server.gc
Class GcEvent

java.lang.Object
  extended by org.sapia.ubik.rmi.server.gc.GcEvent
All Implemented Interfaces:
Event

public class GcEvent
extends java.lang.Object
implements Event

A server-side event that can be intercepted for various purposes, mainly monitoring: it signals that a client GC has synchronized with the server GC.

Author:
Yanick 2002-03-12
See Also:
ClientGC, ServerGC

Method Summary
 int getCleanedCount()
          Returns the number of objects that where garbage collected at the client.
 ServerAddress getOriginAddress()
          Returns the address of the host from which the GC synchronization call comes.
 VmId getOriginId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOriginAddress

public ServerAddress getOriginAddress()
Returns the address of the host from which the GC synchronization call comes.

Returns:
a ServerAddress

getOriginId

public VmId getOriginId()
Returns:
the VmId of the JVM by which the GC event was triggered.

getCleanedCount

public int getCleanedCount()
Returns the number of objects that where garbage collected at the client.

Returns:
a number of GC'ed objects.


Copyright © 2010 Sapia OSS. All Rights Reserved.