net.grinder.synchronisation.messages
Class AbstractBarrierGroupMessage

java.lang.Object
  extended by net.grinder.synchronisation.messages.AbstractBarrierGroupMessage
All Implemented Interfaces:
Serializable, AddressAwareMessage, Message
Direct Known Subclasses:
AddBarrierMessage, AddWaiterMessage, CancelWaiterMessage, RemoveBarriersMessage

public abstract class AbstractBarrierGroupMessage
extends Object
implements AddressAwareMessage

Common implementation for barrier group messages.

Author:
Philip Aston
See Also:
Serialized Form

Constructor Summary
AbstractBarrierGroupMessage(String name)
          Constructor.
 
Method Summary
 String getName()
          Barrier name.
 WorkerIdentity getProcessIdentity()
          Worker process identity.
 void setAddress(Address address)
          Set the origin address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBarrierGroupMessage

public AbstractBarrierGroupMessage(String name)
Constructor.

Parameters:
name - Barrier name.
Method Detail

setAddress

public void setAddress(Address address)
                throws CommunicationException
Set the origin address.

Specified by:
setAddress in interface AddressAwareMessage
Parameters:
address - The address.
Throws:
CommunicationException - If the address is not valid for this message type.

getProcessIdentity

public WorkerIdentity getProcessIdentity()
Worker process identity.

Returns:
The process identity.

getName

public String getName()
Barrier name.

Returns:
The barrier name.


Copyright © 2000-2013. All Rights Reserved.