equip.discovery
Class DiscoveryRequest

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.discovery.DiscoveryRequest
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DiscoveryRequestImpl

public abstract class DiscoveryRequest
extends ValueBase

Discovery request is this serialised into a multicast packet. Based in part on JINI multicast discovery request. Service Type (extra cf JINI since we are not just looking for lookup services) has common form ":". As in JINI (and SNMP), groups are strings which must match exactly to identify common communities of action. E.g. to support concurrently deployment of different versions of the system.


Field Summary
 java.lang.String[] groups
          group(s) of services solicited
 java.lang.String[] heard
          service URLs already known
 short port
          UDP port to send responses to
 java.lang.String[] serviceTypes
          type(s) of services solicited
 
Constructor Summary
DiscoveryRequest()
           
 
Method Summary
 boolean _equals_helper(DiscoveryRequest c)
           
 boolean _matches_helper(DiscoveryRequest c)
           
 boolean equals(java.lang.Object c)
          Standard IDL-generated equality test.
 java.lang.String getModuleName()
          IDL-generated helper routine to get module name (currently unimplemented).
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
 void readObject(ObjectInputStream in)
          Internal serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal serialisation helper.
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

public short port
UDP port to send responses to


serviceTypes

public java.lang.String[] serviceTypes
type(s) of services solicited


groups

public java.lang.String[] groups
group(s) of services solicited


heard

public java.lang.String[] heard
service URLs already known

Constructor Detail

DiscoveryRequest

public DiscoveryRequest()
Method Detail

getModuleName

public java.lang.String getModuleName()
Description copied from class: Object
IDL-generated helper routine to get module name (currently unimplemented).

Overrides:
getModuleName in class Object
Returns:
name of this class's module

equals

public boolean equals(java.lang.Object c)
Description copied from class: ValueBase
Standard IDL-generated equality test.

Overrides:
equals in class ValueBase
Parameters:
c - The object to be compared against this.
Returns:
true if this is equal to c

_equals_helper

public boolean _equals_helper(DiscoveryRequest c)

matches

public boolean matches(java.lang.Object c)
Description copied from class: ValueBase
Standard IDL-generated template match test.

Overrides:
matches in class ValueBase
Parameters:
c - The object to be checked against this template.
Returns:
true if this (as a template) matches the argument

_matches_helper

public boolean _matches_helper(DiscoveryRequest c)

writeObject

public void writeObject(ObjectOutputStream out)
                 throws java.io.IOException
Description copied from class: ValueBase
Internal serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
writeObject in class ValueBase
Throws:
java.io.IOException

readObject

public void readObject(ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.lang.InstantiationException
Description copied from class: ValueBase
Internal serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
readObject in class ValueBase
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException