wt.admin.cache
Class UpdateMessage

java.lang.Object
  extended bywt.admin.cache.UpdateMessage
All Implemented Interfaces:
Serializable

final class UpdateMessage
extends Object
implements Serializable

A message that indicates which method to invoke on a remote cache's CacheUpdater interface, as well as the arguments to the method. This message is transmitted between cache's by calling CacheManager.put to send it and CacheManager.removeEntry to receive it.

See Also:
CacheUpdater, CacheManager

Field Summary
static int ADD
          symbol for the CacheUpdater.add(AdministrativeDomain) method
private  Object[] args
          the arguments to the CacheUpdater method
static int DELETE
          symbol for the CacheUpdater.delete(AdministrativeDomain) method
private  int method
          Indicates which method on the CacheUpdater to invoke.
static int MODIFY
          symbol for the CacheUpdater.modify(AdministrativeDomain) method
static int MOVE
          symbol for the CacheUpdater.move(AdministrativeDomain, AdminDomainRef, AdminDomainRef) method
 
Constructor Summary
UpdateMessage(int method, Object[] args)
           
 
Method Summary
 Object[] getArgs()
          Gets the arguments to the method that this message refers to.
 int getMethod()
          Gets the constant for the method on the CacheUpdater interface that this message refers to.
 String toString()
          Returns a string representation of an UpdateMessage object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

private int method
Indicates which method on the CacheUpdater to invoke. The integer must be one of the values defined by constants in this class.


args

private Object[] args
the arguments to the CacheUpdater method


ADD

public static final int ADD
symbol for the CacheUpdater.add(AdministrativeDomain) method

See Also:
Constant Field Values

DELETE

public static final int DELETE
symbol for the CacheUpdater.delete(AdministrativeDomain) method

See Also:
Constant Field Values

MODIFY

public static final int MODIFY
symbol for the CacheUpdater.modify(AdministrativeDomain) method

See Also:
Constant Field Values

MOVE

public static final int MOVE
symbol for the CacheUpdater.move(AdministrativeDomain, AdminDomainRef, AdminDomainRef) method

See Also:
Constant Field Values
Constructor Detail

UpdateMessage

public UpdateMessage(int method,
                     Object[] args)
Parameters:
method - constant defined in this class that represents a method on the CacheUpdater interface
args - arguments to the CacheUpdater method
Method Detail

getMethod

public int getMethod()
Gets the constant for the method on the CacheUpdater interface that this message refers to.


getArgs

public Object[] getArgs()
Gets the arguments to the method that this message refers to.


toString

public String toString()
Returns a string representation of an UpdateMessage object.