org.apache.mina.registry
Class Service

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

public class Service
extends Object
implements Serializable, Cloneable

Represents a service that is registered to ServiceRegistry.

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)
See Also:
Serialized Form

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

Constructor Detail

Service

public Service(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(String name,
               TransportType transportType,
               SocketAddress address)
Creates a new instance with the specified protocol name, transport type, and socket address to be bound.

Method Detail

getName

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


getTransportType

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


getAddress

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


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2005 . All Rights Reserved.