|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
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. |
Set |
getAllServices()
Returns Set of all services bound in this registry. |
IoAcceptor |
getIoAcceptor(TransportType transportType)
|
ProtocolAcceptor |
getProtocolAcceptor(TransportType transportType)
|
Set |
getServices(int port)
Returns Set of services bound in this registry with the
specified port number. |
Set |
getServices(String name)
Returns Set of services bound in this registry with the
specified service(or protocol) name. |
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 |
---|
void bind(Service service, IoHandler ioHandler) throws IOException
IOException
void bind(Service service, ProtocolProvider protocolProvider) throws IOException
IOException
void unbind(Service service)
void unbindAll()
Set getAllServices()
Set
of all services bound in this registry.
Set getServices(String name)
Set
of services bound in this registry with the
specified service(or protocol) name.
Set getServices(TransportType transportType)
Set
of services bound in this registry with the
specified transport type.
Set getServices(int port)
Set
of services bound in this registry with the
specified port number.
IoAcceptor getIoAcceptor(TransportType transportType)
ProtocolAcceptor getProtocolAcceptor(TransportType transportType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |