jgroup.relacs.events
Class JoinRequest

java.lang.Object
  extended by jgroup.relacs.events.Event
      extended by jgroup.relacs.events.JoinRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, EventTags

public final class JoinRequest
extends Event

The JoinRequest class represents a local message exchange between members and the daemon; it is used by the member to notify the daemon of a join request from the specified member.

Since:
Jgroup 1.2
Author:
Alberto Montresor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jgroup.relacs.events.Event
gid, tag
 
Fields inherited from interface jgroup.relacs.events.EventTags
DAEMON_FAILURE_EVENT, DELIVERY_ACK, DELIVERY_EVENT, INSTALL_ACK, INSTALL_EVENT, JOIN_REQUEST, LEAVE_REQUEST, MEMBER_LEFT_EVENT, MULTICAST_REQUEST, PREPARE_ACK, PREPARE_EVENT
 
Constructor Summary
JoinRequest()
          Default constructor for externalization.
JoinRequest(int gid, MemberId memberId, RemoteDispatcher dispatcher)
          Creates a new JoinRequest event for the specified memberId to join group gid.
 
Method Summary
 RemoteDispatcher getDispatcher()
           
 MemberId getMemberId()
           
 void readExternal(java.io.ObjectInput in)
          Restores the content of this object from the marshalled data contained in the specified input stream.
 java.lang.String toString()
          Returns a string representation of the object.
 void writeExternal(java.io.ObjectOutput out)
          Marshals the content of this object to the specified output stream.
 
Methods inherited from class jgroup.relacs.events.Event
getGid, getTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JoinRequest

public JoinRequest()
Default constructor for externalization.


JoinRequest

public JoinRequest(int gid,
                   MemberId memberId,
                   RemoteDispatcher dispatcher)
Creates a new JoinRequest event for the specified memberId to join group gid.

Method Detail

getMemberId

public MemberId getMemberId()

getDispatcher

public RemoteDispatcher getDispatcher()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Restores the content of this object from the marshalled data contained in the specified input stream.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class Event
Parameters:
in - the stream to be read
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Marshals the content of this object to the specified output stream.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class Event
Parameters:
out - the stream to be written
Throws:
java.io.IOException

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class Event


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.