|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProtocolService
Minimum functionality required by an ApacheDS protocol service.
| Method Summary | |
|---|---|
org.apache.mina.transport.socket.DatagramAcceptor |
getDatagramAcceptor(Transport transport)
If this protocol service supports UDP transport then this gets the non-null MINA DatagramAcceptor it uses. |
String |
getServiceId()
Gets the instance identifier for this ProtocolService. |
String |
getServiceName()
Gets a descriptive name for the kind of service this represents. |
org.apache.mina.transport.socket.SocketAcceptor |
getSocketAcceptor(Transport transport)
If this protocol service support TCP transport then this gets the MINA SocketAcceptor it uses. |
boolean |
isEnabled()
Services can be enabled or disabled. |
boolean |
isStarted()
Gets whether or not this service has been started. |
void |
setEnabled(boolean enabled)
Sets whether or not this ProtocolService is enabled. |
void |
setServiceId(String serviceId)
Sets the instance identifier for this ProtocolService. |
void |
setServiceName(String name)
Sets the descriptive name for the kind of service this represents. |
void |
start()
Starts this ProtocolService which binds acceptors on the protocol port. |
void |
stop()
Stops this ProtocolService which unbinds acceptors on the protocol port. |
| Method Detail |
|---|
void stop()
throws Exception
Exception - if there are problems stopping this service
void start()
throws Exception
Exception - if there are problems starting this serviceboolean isStarted()
org.apache.mina.transport.socket.DatagramAcceptor getDatagramAcceptor(Transport transport)
org.apache.mina.transport.socket.SocketAcceptor getSocketAcceptor(Transport transport)
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - true to enable, false to disableString getServiceId()
void setServiceId(String serviceId)
serviceId - an identifier for the service instanceString getServiceName()
void setServiceName(String name)
name - a descriptive name for the kind of this service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||