|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
AbstractProtocolService()
|
|
| Method Summary | |
|---|---|
DatagramAcceptor |
getDatagramAcceptor()
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 |
getIpAddress()
Gets the IP address of this service. |
int |
getIpPort()
Gets the IP port for this service. |
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. |
SocketAcceptor |
getSocketAcceptor()
If this protocol service support TCP transport then this gets the MINA SocketAcceptor it uses. |
java.util.Set<TransportProtocol> |
getTransportProtocols()
Gets the transport protocols used by this service. |
boolean |
isEnabled()
Services can be enabled or disabled. |
boolean |
isStarted()
Gets whether or not this service has been started. |
void |
setDatagramAcceptor(DatagramAcceptor datagramAcceptor)
If this protocol service supports UDP transport then this sets the MINA DatagramAcceptor it uses. |
void |
setDirectoryService(DirectoryService directoryService)
Sets the DirectoryService assigned to this ProtocolService. |
void |
setEnabled(boolean enabled)
Sets whether or not this ProtocolService is enabled. |
void |
setIpAddress(java.lang.String ipAddress)
Gets the IP address of this service. |
void |
setIpPort(int ipPort)
Sets the IP port for this service. |
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. |
void |
setSocketAcceptor(SocketAcceptor socketAcceptor)
If this protocol service support TCP transport then this sets the MINA SocketAcceptor it uses. |
protected void |
setStarted(boolean started)
|
void |
setTransportProtocols(java.util.Set<TransportProtocol> transportProtocols)
Sets the transport protocols used by this service. |
| 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 |
| Constructor Detail |
|---|
public AbstractProtocolService()
| Method Detail |
|---|
public DirectoryService getDirectoryService()
ProtocolService
getDirectoryService in interface ProtocolServicepublic void setDirectoryService(DirectoryService directoryService)
ProtocolService
setDirectoryService in interface ProtocolServicedirectoryService - the directory service core assigned to this servicepublic boolean isStarted()
ProtocolService
isStarted in interface ProtocolServiceprotected void setStarted(boolean started)
public boolean isEnabled()
ProtocolService
isEnabled in interface ProtocolServicepublic void setEnabled(boolean enabled)
ProtocolService
setEnabled in interface ProtocolServiceenabled - true to enable, false to disablepublic java.lang.String getServiceId()
ProtocolService
getServiceId in interface ProtocolServicepublic void setServiceId(java.lang.String serviceId)
ProtocolService
setServiceId in interface ProtocolServiceserviceId - an identifier for the service instancepublic java.lang.String getServiceName()
ProtocolService
getServiceName in interface ProtocolServicepublic void setServiceName(java.lang.String name)
ProtocolService
setServiceName in interface ProtocolServicename - a descriptive name for the kind of this servicepublic java.lang.String getIpAddress()
ProtocolService
getIpAddress in interface ProtocolServicepublic void setIpAddress(java.lang.String ipAddress)
ProtocolService
setIpAddress in interface ProtocolServiceipAddress - the Internet Protocol address for this service.public int getIpPort()
ProtocolService
getIpPort in interface ProtocolServicepublic void setIpPort(int ipPort)
ProtocolService
setIpPort in interface ProtocolServiceipPort - the ip port for this servicepublic java.util.Set<TransportProtocol> getTransportProtocols()
ProtocolService
getTransportProtocols in interface ProtocolServicepublic void setTransportProtocols(java.util.Set<TransportProtocol> transportProtocols)
ProtocolService
setTransportProtocols in interface ProtocolServicetransportProtocols - the transport protocols to be used by this servicepublic DatagramAcceptor getDatagramAcceptor()
ProtocolService
getDatagramAcceptor in interface ProtocolServicepublic void setDatagramAcceptor(DatagramAcceptor datagramAcceptor)
ProtocolService
setDatagramAcceptor in interface ProtocolServicedatagramAcceptor - the MINA DatagramAcceptor used for UDP transportpublic SocketAcceptor getSocketAcceptor()
ProtocolService
getSocketAcceptor in interface ProtocolServicepublic void setSocketAcceptor(SocketAcceptor socketAcceptor)
ProtocolService
setSocketAcceptor in interface ProtocolServicesocketAcceptor - the MINA SocketAcceptor used for TCP transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||