java.lang.Object
swim.service.ServicePort
- All Implemented Interfaces:
ServiceContext,IpInterface,Log
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KernelContextprotected Logprotected Policyprotected Serviceprotected final Stringprotected Stageprotected static final intprotected intprotected static final AtomicIntegerFieldUpdater<ServicePort> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) voidclose()connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) voidLogs a debug-level message.protected voiddidStart()protected voiddidStop()voidLogs an error-level message.voidLogs an fail-level message.voidLogs an info-level message.final KernelContextkernel()schedule()final Serviceservice()final StringvoidsetService(Service service) final Stagestage()voidstart()voidstop()voidLogs a trace-level message.voidLogs a warn-level message.protected voidprotected voidwillStop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
-
Field Details
-
serviceName
-
kernel
-
service
-
status
protected volatile int status -
log
-
policy
-
stage
-
STARTED
protected static final int STARTED- See Also:
-
STATUS
-
-
Constructor Details
-
ServicePort
-
-
Method Details
-
serviceName
-
schedule
- Specified by:
schedulein interfaceServiceContext
-
stage
- Specified by:
stagein interfaceServiceContext
-
kernel
-
service
-
setService
-
ipSettings
- Specified by:
ipSettingsin interfaceIpInterface
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTcpin interfaceIpInterface
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTlsin interfaceIpInterface
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTcpin interfaceIpInterface
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTlsin interfaceIpInterface
-
start
public void start() -
stop
public void stop() -
close
public void close()- Specified by:
closein interfaceServiceContext
-
willStart
protected void willStart() -
didStart
protected void didStart() -
willStop
protected void willStop() -
didStop
protected void didStop() -
trace
Description copied from interface:LogLogs a trace-level message. -
debug
Description copied from interface:LogLogs a debug-level message. -
info
Description copied from interface:LogLogs an info-level message. -
warn
Description copied from interface:LogLogs a warn-level message. -
error
Description copied from interface:LogLogs an error-level message. -
fail
Description copied from interface:LogLogs an fail-level message.
-