public interface ServiceRegistry
Modifier and Type | Method and Description |
---|---|
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).
|
void bind(Service service, IoHandler ioHandler) throws java.io.IOException
java.io.IOException
void bind(Service service, ProtocolProvider protocolProvider) throws java.io.IOException
java.io.IOException
void unbind(Service service)
void unbindAll()
java.util.Set getAllServices()
Set
of all services bound in this registry.java.util.Set getServices(java.lang.String name)
Set
of services bound in this registry with the
specified service(or protocol) name.java.util.Set getServices(TransportType transportType)
Set
of services bound in this registry with the
specified transport type.java.util.Set getServices(int port)
Set
of services bound in this registry with the
specified port number.IoAcceptor getIoAcceptor(TransportType transportType)
ProtocolAcceptor getProtocolAcceptor(TransportType transportType)