uk.ac.ic.doc.rodex.p2p.messages.applicationlayer
Class SchemaRegMsg

java.lang.Object
  extended by uk.ac.ic.doc.rodex.p2p.messages.applicationlayer.SchemaRegMsg
All Implemented Interfaces:
ApplicationMessage

public class SchemaRegMsg
extends java.lang.Object
implements ApplicationMessage

SchemaRegMsg.java

The Schema Registration sent by directory service peer to a registered peer asking for available schemas. It is a simple message with no data.

Author:
Duc M Le dmle@doc.ic.ac.uk
Created on April 20, 2006
Department of Computing, Imperial College

Constructor Summary
SchemaRegMsg()
          Creates a new instance of HelloMsg
 
Method Summary
 ApplicationMessage createFrom(AbstractMessage message)
          Return an instance of this message created from a given AbstractMessage This method is used by the receiving peer to decode the message
 AbstractMessage getAbstractMessage()
          Return the actual message
 java.lang.String getContext()
          Return the message context
 java.lang.String getPerformative()
          Return the message's performative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaRegMsg

public SchemaRegMsg()
Creates a new instance of HelloMsg

Method Detail

getPerformative

public java.lang.String getPerformative()
Return the message's performative

Specified by:
getPerformative in interface ApplicationMessage

getContext

public java.lang.String getContext()
Return the message context

Specified by:
getContext in interface ApplicationMessage

getAbstractMessage

public AbstractMessage getAbstractMessage()
Return the actual message

Specified by:
getAbstractMessage in interface ApplicationMessage

createFrom

public ApplicationMessage createFrom(AbstractMessage message)
Return an instance of this message created from a given AbstractMessage This method is used by the receiving peer to decode the message

Specified by:
createFrom in interface ApplicationMessage