org.openbandy.example.remotestore
Class RemoteStoreProtocol

java.lang.Object
  extended by org.openbandy.example.remotestore.RemoteStoreProtocol
All Implemented Interfaces:
ServerProtocol

public class RemoteStoreProtocol
extends java.lang.Object
implements ServerProtocol

TODO describe purpose and usage

(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.

Version:
0.1
Author:
Philipp Bolliger (philipp@bolliger.name)

Field Summary
 
Fields inherited from interface org.openbandy.net.ServerProtocol
PING_PONG_MESSAGE, PORT_PING_PONG, PORT_REMOTE_STORE, REMOTE_STORE_MESSAGE
 
Constructor Summary
RemoteStoreProtocol()
           
 
Method Summary
 Message createMessage(java.lang.String sender, Serializable objectToStoreOnServer)
          TODO comment!
 int getPort()
           
 boolean isValidMessage(Message msg)
          This method will test the message for validity according to its implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteStoreProtocol

public RemoteStoreProtocol()
Method Detail

createMessage

public Message createMessage(java.lang.String sender,
                             Serializable objectToStoreOnServer)
TODO comment!

Parameters:
sender -
objectToStoreOnServer -
Returns:

isValidMessage

public boolean isValidMessage(Message msg)
Description copied from interface: ServerProtocol
This method will test the message for validity according to its implementation.

Specified by:
isValidMessage in interface ServerProtocol
Returns:

getPort

public int getPort()
Specified by:
getPort in interface ServerProtocol
Returns:
The port number of the service.