|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.protocol.shared.AbstractProtocolService
public abstract class AbstractProtocolService
An abstract base class for a ProtocolService. The start/stop methods have not been implemented.
Field Summary | |
---|---|
protected java.util.Set<Transport> |
transports
The service transports. |
Constructor Summary | |
---|---|
AbstractProtocolService()
|
Method Summary | |
---|---|
void |
addTransports(Transport... transports)
Add underlying transports |
org.apache.mina.transport.socket.DatagramAcceptor |
getDatagramAcceptor(Transport udpTransport)
If this protocol service supports UDP transport then this gets the non-null MINA DatagramAcceptor it uses. |
DirectoryService |
getDirectoryService()
Gets the DirectoryService assigned to this ProtocolService. |
java.lang.String |
getServiceId()
Gets the instance identifier for this ProtocolService. |
java.lang.String |
getServiceName()
Gets a descriptive name for the kind of service this represents. |
org.apache.mina.transport.socket.SocketAcceptor |
getSocketAcceptor(Transport tcpTransport)
If this protocol service support TCP transport then this gets the MINA SocketAcceptor it uses. |
Transport[] |
getTransports()
|
boolean |
isEnabled()
Services can be enabled or disabled. |
boolean |
isStarted()
Gets whether or not this service has been started. |
void |
setDirectoryService(DirectoryService directoryService)
Sets the DirectoryService assigned to this ProtocolService. |
void |
setEnabled(boolean enabled)
Sets whether or not this ProtocolService is enabled. |
void |
setServiceId(java.lang.String serviceId)
Sets the instance identifier for this ProtocolService. |
void |
setServiceName(java.lang.String name)
Sets the descriptive name for the kind of service this represents. |
protected void |
setStarted(boolean started)
|
void |
setTransports(Transport... transports)
Set the underlying transports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.directory.server.protocol.shared.ProtocolService |
---|
start, stop |
Field Detail |
---|
protected java.util.Set<Transport> transports
Constructor Detail |
---|
public AbstractProtocolService()
Method Detail |
---|
public DirectoryService getDirectoryService()
ProtocolService
getDirectoryService
in interface ProtocolService
public void setDirectoryService(DirectoryService directoryService)
ProtocolService
setDirectoryService
in interface ProtocolService
directoryService
- the directory service core assigned to this servicepublic boolean isStarted()
ProtocolService
isStarted
in interface ProtocolService
protected void setStarted(boolean started)
started
- The state of this serverpublic boolean isEnabled()
ProtocolService
isEnabled
in interface ProtocolService
public void setEnabled(boolean enabled)
setEnabled
in interface ProtocolService
enabled
- true to enable, false to disablepublic java.lang.String getServiceId()
ProtocolService
getServiceId
in interface ProtocolService
public void setServiceId(java.lang.String serviceId)
ProtocolService
setServiceId
in interface ProtocolService
serviceId
- an identifier for the service instancepublic java.lang.String getServiceName()
ProtocolService
getServiceName
in interface ProtocolService
public void setServiceName(java.lang.String name)
ProtocolService
setServiceName
in interface ProtocolService
name
- The server namepublic Transport[] getTransports()
public void setTransports(Transport... transports)
transport
- The transportspublic void addTransports(Transport... transports)
transport
- The transportspublic org.apache.mina.transport.socket.DatagramAcceptor getDatagramAcceptor(Transport udpTransport)
getDatagramAcceptor
in interface ProtocolService
public org.apache.mina.transport.socket.SocketAcceptor getSocketAcceptor(Transport tcpTransport)
getSocketAcceptor
in interface ProtocolService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |