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