org.globus.cog.abstraction.impl.common.task
Class ServiceContactImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.ServiceContactImpl
All Implemented Interfaces:
ServiceContact

public class ServiceContactImpl
extends Object
implements ServiceContact


Field Summary
static ServiceContact LOCALHOST
           
 
Constructor Summary
ServiceContactImpl()
           
ServiceContactImpl(String contact)
           
ServiceContactImpl(String host, int port)
           
 
Method Summary
 boolean equals(Object object)
           
 boolean equals(ServiceContact serviceContact)
          Checks if the given ServiceContact is equal to this ServiceContact.
 String getContact()
          Returns the entire contact string of this ServiceContact
 String getHost()
          Returns the host element of this ServiceContact
 int getPort()
          Returns the port element of this ServiceContact
 int hashCode()
           
 void setContact(String contact)
          Sets the entire contact string of this ServiceContact
 void setHost(String host)
          Sets the host element of this ServiceContact
 void setPort(int port)
          Sets the port element of this ServiceContact
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALHOST

public static final ServiceContact LOCALHOST
Constructor Detail

ServiceContactImpl

public ServiceContactImpl()

ServiceContactImpl

public ServiceContactImpl(String contact)

ServiceContactImpl

public ServiceContactImpl(String host,
                          int port)
Method Detail

setHost

public void setHost(String host)
Description copied from interface: ServiceContact
Sets the host element of this ServiceContact

Specified by:
setHost in interface ServiceContact

getHost

public String getHost()
Description copied from interface: ServiceContact
Returns the host element of this ServiceContact

Specified by:
getHost in interface ServiceContact

setPort

public void setPort(int port)
Description copied from interface: ServiceContact
Sets the port element of this ServiceContact

Specified by:
setPort in interface ServiceContact

getPort

public int getPort()
Description copied from interface: ServiceContact
Returns the port element of this ServiceContact

Specified by:
getPort in interface ServiceContact

setContact

public void setContact(String contact)
Description copied from interface: ServiceContact
Sets the entire contact string of this ServiceContact

Specified by:
setContact in interface ServiceContact

getContact

public String getContact()
Description copied from interface: ServiceContact
Returns the entire contact string of this ServiceContact

Specified by:
getContact in interface ServiceContact

equals

public boolean equals(ServiceContact serviceContact)
Description copied from interface: ServiceContact
Checks if the given ServiceContact is equal to this ServiceContact.

Specified by:
equals in interface ServiceContact

equals

public boolean equals(Object object)

hashCode

public int hashCode()

toString

public String toString()