|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the internet service registry. The registry is used by MINA to associate services with ports and transport protocols.
Method Summary | |
void |
bind(Service service,
IoHandler ioHandler)
Binds the specified I/O handler to the specified service. |
void |
bind(Service service,
ProtocolProvider protocolProvider)
Binds the specified protocol provider to the specified service. |
java.util.Set |
getAllServices()
Returns Set of all services bound in this registry. |
IoAcceptor |
getIoAcceptor(TransportType transportType)
|
ProtocolAcceptor |
getProtocolAcceptor(TransportType transportType)
|
java.util.Set |
getServices(int port)
Returns Set of services bound in this registry with the
specified port number. |
java.util.Set |
getServices(java.lang.String name)
Returns Set of services bound in this registry with the
specified service(or protocol) name. |
java.util.Set |
getServices(TransportType transportType)
Returns Set of services bound in this registry with the
specified transport type. |
void |
unbind(Service service)
Unbinds the specified service (and its aggregated I/O handler or protocol provider). |
void |
unbindAll()
Unbinds all services (and their aggregated I/O handlers or protocol providers). |
Method Detail |
public void bind(Service service, IoHandler ioHandler) throws java.io.IOException
java.io.IOException
public void bind(Service service, ProtocolProvider protocolProvider) throws java.io.IOException
java.io.IOException
public void unbind(Service service)
public void unbindAll()
public java.util.Set getAllServices()
Set
of all services bound in this registry.
public java.util.Set getServices(java.lang.String name)
Set
of services bound in this registry with the
specified service(or protocol) name.
public java.util.Set getServices(TransportType transportType)
Set
of services bound in this registry with the
specified transport type.
public java.util.Set getServices(int port)
Set
of services bound in this registry with the
specified port number.
public IoAcceptor getIoAcceptor(TransportType transportType)
public ProtocolAcceptor getProtocolAcceptor(TransportType transportType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |