org.apache.mina.registry
Class Service

java.lang.Object
  extended byorg.apache.mina.registry.Service
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Service
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Represents a service that is registered to ServiceRegistry.

Version:
$Rev: 326586 $, $Date: 2005-10-19 17:50:29 +0200 (Wed, 19 Oct 2005) $
Author:
The Apache Directory Project (dev@directory.apache.org)
See Also:
Serialized Form

Constructor Summary
Service(java.lang.String name, TransportType transportType, int port)
          Creates a new instance with the specified protocol name, transport type, and port number to be bound.
Service(java.lang.String name, TransportType transportType, java.net.SocketAddress address)
          Creates a new instance with the specified protocol name, transport type, and socket address to be bound.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.net.SocketAddress getAddress()
          Returns the socket address this service is bound on.
 java.lang.String getName()
          Returns the name of this service (protocol).
 TransportType getTransportType()
          Returns the transport type this service uses.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Service

public Service(java.lang.String name,
               TransportType transportType,
               int port)
Creates a new instance with the specified protocol name, transport type, and port number to be bound.


Service

public Service(java.lang.String name,
               TransportType transportType,
               java.net.SocketAddress address)
Creates a new instance with the specified protocol name, transport type, and socket address to be bound.

Method Detail

getName

public java.lang.String getName()
Returns the name of this service (protocol).


getTransportType

public TransportType getTransportType()
Returns the transport type this service uses.


getAddress

public java.net.SocketAddress getAddress()
Returns the socket address this service is bound on.


hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

clone

public java.lang.Object clone()

toString

public java.lang.String toString()