|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.registry.Service
Represents a service that is registered to ServiceRegistry
.
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 |
public Service(java.lang.String name, TransportType transportType, int port)
public Service(java.lang.String name, TransportType transportType, java.net.SocketAddress address)
Method Detail |
public java.lang.String getName()
public TransportType getTransportType()
public java.net.SocketAddress getAddress()
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |