mirrormap.commands
Class AbstractCommand

java.lang.Object
  extended by mirrormap.commands.AbstractCommand
All Implemented Interfaces:
Serializable, ICommand
Direct Known Subclasses:
AddCommand, PeerConnectedCommand, PeerDisconnectedCommand, RegisterCommand, RemoveCommand, UnregisterCommand

public abstract class AbstractCommand
extends Object
implements ICommand

Base class for ICommand implementations

Author:
Ramon Servadei
See Also:
Serialized Form

Field Summary
protected  Serializable key
          The key in the MirrorMap the command applies to
protected  String mirrorMapName
          The name of the MirrorMap instance this command applies to
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
 byte[] getBytes()
          Get the serialised byte[] of this
 String getMirrorMapName()
          The MirrorMap the command is for
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mirrormap.commands.ICommand
execute
 

Field Detail

mirrorMapName

protected String mirrorMapName
The name of the MirrorMap instance this command applies to


key

protected Serializable key
The key in the MirrorMap the command applies to

Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

getBytes

public byte[] getBytes()
Description copied from interface: ICommand
Get the serialised byte[] of this

Specified by:
getBytes in interface ICommand
Returns:
the serialised byte[] of this

getMirrorMapName

public String getMirrorMapName()
Description copied from interface: ICommand
The MirrorMap the command is for

Specified by:
getMirrorMapName in interface ICommand
Returns:
the name of the MirrorMap the command is targetted at

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.