edu.nyu.cs.pdsg.discovery
Class ServiceDescriptor

java.lang.Object
  extended byedu.nyu.cs.pdsg.discovery.ServiceDescriptor
All Implemented Interfaces:
java.io.Serializable

public class ServiceDescriptor
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.net.InetSocketAddress home
           
private  java.lang.String name
           
 
Constructor Summary
ServiceDescriptor(java.lang.String _name, java.net.InetSocketAddress _home)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.net.InetSocketAddress getServiceHome()
           
 java.lang.String getServiceName()
           
 int hashCode()
           
private  void setServiceHome(java.net.InetSocketAddress _home)
           
private  void setServiceName(java.lang.String _name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

home

private java.net.InetSocketAddress home
Constructor Detail

ServiceDescriptor

public ServiceDescriptor(java.lang.String _name,
                         java.net.InetSocketAddress _home)
Parameters:
_name - the name of the service to search for
_home - the location of the service home
Method Detail

getServiceName

public java.lang.String getServiceName()
Returns:
the name of the service

setServiceName

private void setServiceName(java.lang.String _name)
Parameters:
_name - the name of the service

getServiceHome

public java.net.InetSocketAddress getServiceHome()
Returns:
the location of the service's home

setServiceHome

private void setServiceHome(java.net.InetSocketAddress _home)
Parameters:
_home - the location of the service's home

hashCode

public int hashCode()
Returns:
the hashCode of the service name

equals

public boolean equals(java.lang.Object o)

toString

public java.lang.String toString()


Copyright (c) 2002-2003 New York University RLAB