hypercast.events
Class NAMING_EVENT

java.lang.Object
  |
  +--hypercast.events.NOTIFICATION_EVENT
        |
        +--hypercast.events.NAMING_EVENT

public class NAMING_EVENT
extends NOTIFICATION_EVENT

Class of event that is particular to the naming system. Object of this class contain information about bindings that have been requested by an application.

See Also:
Naming, MessageStoreFSM_Naming

Constructor Summary
NAMING_EVENT(int serialNumber, hypercast.ImmutableNamingBinding[] bindings)
          Builds an event for the naming service.
 
Method Summary
 boolean containsLogicalAddress(java.lang.String logicalAddressString)
          Returns true if at least one binding in this object has the specified logical address.
 boolean containsName(java.lang.String name)
          Returns true if at least one binding in this object has the specified name.
 hypercast.ImmutableNamingBinding[] getBindings()
          Returns the array of all bindings in this object.
 hypercast.ImmutableNamingBinding[] getBindingsWithLogicalAddress(java.lang.String logicalAddressString)
          Returns an array of the subset of bindings contained by this object that have the specified logical address.
 hypercast.ImmutableNamingBinding[] getBindingsWithName(java.lang.String name)
          Returns an array of the subset of bindings contained by this object that have the specified name.
 hypercast.ImmutableNamingBinding[] getLocalBindings()
          Returns an array of the subset of bindings contained by this object that were created locally.
 int getSerialNumber()
          Returns the serial number of the query associated with this event.
 java.lang.String toString()
          Returns a string that contains the representation of all bindings in this event.
 
Methods inherited from class hypercast.events.NOTIFICATION_EVENT
getInfo, getTimestamp, setInfo, setTimestamp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NAMING_EVENT

public NAMING_EVENT(int serialNumber,
                    hypercast.ImmutableNamingBinding[] bindings)
Builds an event for the naming service. The bindings here are copies of those actually contained in the implementation of the naming service. This is done so that the application cannot harm the internals of the naming service implemenation.

Method Detail

getSerialNumber

public int getSerialNumber()
Returns the serial number of the query associated with this event.


containsName

public boolean containsName(java.lang.String name)
Returns true if at least one binding in this object has the specified name.


containsLogicalAddress

public boolean containsLogicalAddress(java.lang.String logicalAddressString)
Returns true if at least one binding in this object has the specified logical address.


getBindings

public hypercast.ImmutableNamingBinding[] getBindings()
Returns the array of all bindings in this object.


getLocalBindings

public hypercast.ImmutableNamingBinding[] getLocalBindings()
Returns an array of the subset of bindings contained by this object that were created locally.


getBindingsWithName

public hypercast.ImmutableNamingBinding[] getBindingsWithName(java.lang.String name)
Returns an array of the subset of bindings contained by this object that have the specified name.


getBindingsWithLogicalAddress

public hypercast.ImmutableNamingBinding[] getBindingsWithLogicalAddress(java.lang.String logicalAddressString)
Returns an array of the subset of bindings contained by this object that have the specified logical address.


toString

public java.lang.String toString()
Returns a string that contains the representation of all bindings in this event. Each binding is separated with a new line.

Overrides:
toString in class java.lang.Object