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