|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.registry.SimpleServiceRegistry
public class SimpleServiceRegistry
A simple implementation of ServiceRegistry
.
This service registry supports socket, datagram, VM-pipe transport types,
and thread pools were added by default.
Field Summary | |
---|---|
protected IoAcceptor |
datagramIoAcceptor
|
protected ProtocolAcceptor |
datagramProtocolAcceptor
|
protected IoThreadPoolFilter |
ioThreadPoolFilter
|
protected ProtocolThreadPoolFilter |
protocolThreadPoolFilter
|
protected IoAcceptor |
socketIoAcceptor
|
protected ProtocolAcceptor |
socketProtocolAcceptor
|
protected ProtocolAcceptor |
vmPipeAcceptor
|
Constructor Summary | |
---|---|
SimpleServiceRegistry()
|
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. |
protected IoAcceptor |
findIoAcceptor(TransportType transportType)
|
protected ProtocolAcceptor |
findProtocolAcceptor(TransportType transportType)
|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IoAcceptor socketIoAcceptor
protected final IoAcceptor datagramIoAcceptor
protected final ProtocolAcceptor socketProtocolAcceptor
protected final ProtocolAcceptor datagramProtocolAcceptor
protected final ProtocolAcceptor vmPipeAcceptor
protected final IoThreadPoolFilter ioThreadPoolFilter
protected final ProtocolThreadPoolFilter protocolThreadPoolFilter
Constructor Detail |
---|
public SimpleServiceRegistry()
Method Detail |
---|
public void bind(Service service, IoHandler ioHandler) throws IOException
ServiceRegistry
bind
in interface ServiceRegistry
IOException
public void bind(Service service, ProtocolProvider protocolProvider) throws IOException
ServiceRegistry
bind
in interface ServiceRegistry
IOException
public void unbind(Service service)
ServiceRegistry
unbind
in interface ServiceRegistry
public void unbindAll()
ServiceRegistry
unbindAll
in interface ServiceRegistry
public IoAcceptor getIoAcceptor(TransportType transportType)
getIoAcceptor
in interface ServiceRegistry
public ProtocolAcceptor getProtocolAcceptor(TransportType transportType)
getProtocolAcceptor
in interface ServiceRegistry
public Set getAllServices()
ServiceRegistry
Set
of all services bound in this registry.
getAllServices
in interface ServiceRegistry
public Set getServices(String name)
ServiceRegistry
Set
of services bound in this registry with the
specified service(or protocol) name.
getServices
in interface ServiceRegistry
public Set getServices(TransportType transportType)
ServiceRegistry
Set
of services bound in this registry with the
specified transport type.
getServices
in interface ServiceRegistry
public Set getServices(int port)
ServiceRegistry
Set
of services bound in this registry with the
specified port number.
getServices
in interface ServiceRegistry
protected IoAcceptor findIoAcceptor(TransportType transportType)
protected ProtocolAcceptor findProtocolAcceptor(TransportType transportType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |