- java.lang.Object
-
- swim.kernel.KernelProxy
-
- swim.service.ServiceKernel
-
- All Implemented Interfaces:
IpInterface
,Kernel
,KernelBinding
,KernelContext
,Log
public class ServiceKernel extends KernelProxy
-
-
Field Summary
-
Fields inherited from class swim.kernel.KernelProxy
kernelBinding, kernelContext, STARTED, status, STATUS
-
-
Constructor Summary
Constructors Constructor Description ServiceKernel()
ServiceKernel(double kernelPriority)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <S extends Service>
ScreateService(ServiceContext serviceContext, ServiceFactory<S> serviceFactory)
protected ServiceContext
createServiceContext(String serviceName)
void
didStart()
static ServiceKernel
fromValue(Value moduleConfig)
Service
getService(String serviceName)
double
kernelPriority()
Returns the relative priority of thisKernel
implementation.<S extends Service>
SopenService(String serviceName, ServiceFactory<S> serviceFactory)
void
willStop()
-
Methods inherited from class swim.kernel.KernelProxy
bindTcp, bindTls, connectTcp, connectTls, createAgentFactory, createAgentFactory, createAgentFactory, createAgentFactory, createAgentRoute, createAuthenticator, createEdge, createHost, createHost, createLane, createLane, createLog, createLog, createMesh, createMesh, createNode, createNode, createPart, createPart, createPlaneFactory, createPlaneFactory, createPolicy, createPolicy, createSchedule, createServiceFactory, createStage, createStage, createStore, createStore, debug, defineAgent, defineAuthenticator, defineHost, defineLane, defineLog, defineMesh, defineNode, definePart, definePlane, definePolicy, defineSchedule, defineService, defineSpace, defineStage, defineStore, didStop, error, fail, getHostDef, getLaneDef, getMeshDef, getNodeDef, getPartDef, getSpace, info, injectAuthenticator, injectEdge, injectHost, injectKernel, injectLane, injectLog, injectMesh, injectNode, injectPart, injectPlane, injectPolicy, injectSchedule, injectService, injectStage, injectStore, ipSettings, isStarted, kernelBinding, kernelContext, kernelWrapper, modules, openAgents, openLanes, openMetaDownlink, openMetaEdge, openMetaHost, openMetaLane, openMetaMesh, openMetaNode, openMetaPart, openMetaUplink, openSpace, reportDown, routeRequest, run, setKernelBinding, setKernelContext, stage, start, station, stop, trace, unwrapKernel, warn, willStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
Methods inherited from interface swim.kernel.Kernel
openService, openService
-
-
-
-
Method Detail
-
kernelPriority
public final double kernelPriority()
Description copied from interface:Kernel
Returns the relative priority of thisKernel
implementation. Kernel implementations with greater priority inject into kernel stacks before implementations with lower priority.- Specified by:
kernelPriority
in interfaceKernel
- Specified by:
kernelPriority
in classKernelProxy
-
createServiceContext
protected ServiceContext createServiceContext(String serviceName)
-
createService
protected <S extends Service> S createService(ServiceContext serviceContext, ServiceFactory<S> serviceFactory)
-
openService
public <S extends Service> S openService(String serviceName, ServiceFactory<S> serviceFactory)
- Specified by:
openService
in interfaceKernel
- Specified by:
openService
in interfaceKernelContext
- Overrides:
openService
in classKernelProxy
-
getService
public Service getService(String serviceName)
- Specified by:
getService
in interfaceKernel
- Specified by:
getService
in interfaceKernelContext
- Overrides:
getService
in classKernelProxy
-
didStart
public void didStart()
- Overrides:
didStart
in classKernelProxy
-
willStop
public void willStop()
- Overrides:
willStop
in classKernelProxy
-
fromValue
public static ServiceKernel fromValue(Value moduleConfig)
-
-