mirrormap.commands
Class AbstractCommand
java.lang.Object
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
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
AbstractCommand
public AbstractCommand()
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.