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

java.lang.Object
  extended by org.sapia.ubik.rmi.server.command.Command
      extended by org.sapia.ubik.rmi.server.RMICommand
          extended by org.sapia.ubik.rmi.server.gc.CommandGc
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Executable

public class CommandGc
extends RMICommand

This command is sent by clients (ClientGC instances) that wish to notify the server that they have garbage-collected remote references. The server-side GC (ServerGC) updates the reference count for all object identifiers it receives (which are passed in through this command).

Author:
Yanick Duchesne 2002-09-11
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sapia.ubik.rmi.server.RMICommand
_config, _vmId
 
Constructor Summary
CommandGc()
          Do not call; used for externalization only.
 
Method Summary
 java.lang.Object execute()
          Executes this command.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.sapia.ubik.rmi.server.RMICommand
getConnection, getServerAddress, getVmId, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandGc

public CommandGc()
Do not call; used for externalization only.

Method Detail

execute

public java.lang.Object execute()
                         throws java.lang.Throwable
Description copied from class: RMICommand
Executes this command.

Specified by:
execute in interface Executable
Specified by:
execute in class RMICommand
Returns:
any value returned by this method.
Throws:
java.lang.Throwable - if an error occurs while executing this command
See Also:
RMICommand.execute()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class RMICommand
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
RMICommand.readExternal(ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class RMICommand
Throws:
java.io.IOException
See Also:
RMICommand.writeExternal(ObjectOutput)


Copyright © 2010 Sapia OSS. All Rights Reserved.