- java.lang.Object
-
- swim.kernel.KernelProxy
-
- swim.kernel.BootKernel
-
- All Implemented Interfaces:
IpInterface
,IpStation
,Kernel
,KernelBinding
,KernelContext
,Log
public class BootKernel extends KernelProxy implements IpStation
-
-
Field Summary
-
Fields inherited from class swim.kernel.KernelProxy
kernelBinding, kernelContext, STARTED, status, STATUS
-
-
Constructor Summary
Constructors Constructor Description BootKernel()
BootKernel(double kernelPriority)
BootKernel(double kernelPriority, Value moduleConfig)
-
Method Summary
-
Methods inherited from class swim.kernel.KernelProxy
createAgentFactory, createAgentFactory, createAgentFactory, createAgentFactory, createAgentRoute, createAuthenticator, createLane, createLog, createLog, createNode, createNode, createPlaneFactory, createPlaneFactory, createPolicy, createPolicy, createServiceFactory, createStore, createStore, defineAgent, defineAuthenticator, defineHost, defineLane, defineLog, defineMesh, defineNode, definePart, definePlane, definePolicy, defineService, defineSpace, defineStore, didStart, getHostDef, getLaneDef, getMeshDef, getNodeDef, getPartDef, getService, getSpace, injectAuthenticator, injectEdge, injectHost, injectKernel, injectLane, injectLog, injectMesh, injectNode, injectPart, injectPlane, injectPolicy, injectSchedule, injectService, injectStage, injectStore, isStarted, kernelBinding, kernelContext, kernelWrapper, modules, openAgents, openLanes, openMetaDownlink, openMetaEdge, openMetaHost, openMetaLane, openMetaMesh, openMetaNode, openMetaPart, openMetaUplink, openService, openSpace, reportDown, routeRequest, setKernelBinding, setKernelContext, start, stop, unwrapKernel, willStop
-
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
-
-
-
-
Constructor Detail
-
BootKernel
public BootKernel(double kernelPriority, Value moduleConfig)
-
BootKernel
public BootKernel(double kernelPriority)
-
BootKernel
public BootKernel()
-
-
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
-
createStage
protected Stage createStage()
-
createStation
protected Station createStation()
-
stage
public final Stage stage()
- Specified by:
stage
in interfaceKernelContext
- Overrides:
stage
in classKernelProxy
-
station
public final Station station()
- Specified by:
station
in interfaceIpStation
- Specified by:
station
in interfaceKernelContext
- Overrides:
station
in classKernelProxy
-
defineSchedule
public ScheduleDef defineSchedule(Item scheduleConfig)
- Specified by:
defineSchedule
in interfaceKernelContext
- Overrides:
defineSchedule
in classKernelProxy
-
createSchedule
public Schedule createSchedule(ScheduleDef scheduleDef, Stage stage)
- Specified by:
createSchedule
in interfaceKernelContext
- Overrides:
createSchedule
in classKernelProxy
-
defineStage
public StageDef defineStage(Item stageConfig)
- Specified by:
defineStage
in interfaceKernelContext
- Overrides:
defineStage
in classKernelProxy
-
createStage
public Stage createStage(StageDef stageDef)
- Specified by:
createStage
in interfaceKernelContext
- Overrides:
createStage
in classKernelProxy
-
createTheater
public Theater createTheater(TheaterDef theaterDef)
-
createStage
public Stage createStage(CellAddress cellAddress)
- Specified by:
createStage
in interfaceKernelContext
- Overrides:
createStage
in classKernelProxy
-
ipSettings
public IpSettings ipSettings()
- Specified by:
ipSettings
in interfaceIpInterface
- Specified by:
ipSettings
in interfaceKernelContext
- Overrides:
ipSettings
in classKernelProxy
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTcp
in interfaceIpInterface
- Specified by:
bindTcp
in interfaceIpStation
- Specified by:
bindTcp
in interfaceKernelContext
- Overrides:
bindTcp
in classKernelProxy
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTls
in interfaceIpInterface
- Specified by:
bindTls
in interfaceIpStation
- Specified by:
bindTls
in interfaceKernelContext
- Overrides:
bindTls
in classKernelProxy
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTcp
in interfaceIpInterface
- Specified by:
connectTcp
in interfaceIpStation
- Specified by:
connectTcp
in interfaceKernelContext
- Overrides:
connectTcp
in classKernelProxy
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTls
in interfaceIpInterface
- Specified by:
connectTls
in interfaceIpStation
- Specified by:
connectTls
in interfaceKernelContext
- Overrides:
connectTls
in classKernelProxy
-
createEdge
public EdgeBinding createEdge(EdgeAddress edgeAddress)
- Specified by:
createEdge
in interfaceKernelContext
- Overrides:
createEdge
in classKernelProxy
-
createMesh
public MeshBinding createMesh(EdgeBinding edge, MeshDef meshDef)
- Specified by:
createMesh
in interfaceKernelContext
- Overrides:
createMesh
in classKernelProxy
-
createMesh
public MeshBinding createMesh(MeshAddress meshAddress)
- Specified by:
createMesh
in interfaceKernelContext
- Overrides:
createMesh
in classKernelProxy
-
createPart
public PartBinding createPart(MeshBinding mesh, PartDef partDef)
- Specified by:
createPart
in interfaceKernelContext
- Overrides:
createPart
in classKernelProxy
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceKernelContext
- Overrides:
createPart
in classKernelProxy
-
createHost
public HostBinding createHost(PartBinding part, HostDef hostDef)
- Specified by:
createHost
in interfaceKernelContext
- Overrides:
createHost
in classKernelProxy
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceKernelContext
- Overrides:
createHost
in classKernelProxy
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLane
in interfaceKernelContext
- Overrides:
createLane
in classKernelProxy
-
createCommandLane
public LaneBinding createCommandLane(NodeBinding node, LaneDef laneDef)
-
createListLane
public LaneBinding createListLane(NodeBinding node, LaneDef laneDef)
-
createMapLane
public LaneBinding createMapLane(NodeBinding node, LaneDef laneDef)
-
createGeospatialLane
public LaneBinding createGeospatialLane(NodeBinding node, LaneDef laneDef)
-
createSupplyLane
public LaneBinding createSupplyLane(NodeBinding node, LaneDef laneDef)
-
createValueLane
public LaneBinding createValueLane(NodeBinding node, LaneDef laneDef)
-
createHttpLane
public LaneBinding createHttpLane(NodeBinding node, LaneDef laneDef)
-
willStart
public void willStart()
- Overrides:
willStart
in classKernelProxy
-
didStop
public void didStop()
- Overrides:
didStop
in classKernelProxy
-
run
public void run()
- Specified by:
run
in interfaceKernel
- Overrides:
run
in classKernelProxy
-
trace
public void trace(Object message)
Description copied from interface:Log
Logs a trace-level message.- Specified by:
trace
in interfaceLog
- Overrides:
trace
in classKernelProxy
-
debug
public void debug(Object message)
Description copied from interface:Log
Logs a debug-level message.- Specified by:
debug
in interfaceLog
- Overrides:
debug
in classKernelProxy
-
info
public void info(Object message)
Description copied from interface:Log
Logs an info-level message.- Specified by:
info
in interfaceLog
- Overrides:
info
in classKernelProxy
-
warn
public void warn(Object message)
Description copied from interface:Log
Logs a warn-level message.- Specified by:
warn
in interfaceLog
- Overrides:
warn
in classKernelProxy
-
error
public void error(Object message)
Description copied from interface:Log
Logs an error-level message.- Specified by:
error
in interfaceLog
- Overrides:
error
in classKernelProxy
-
fail
public void fail(Object message)
Description copied from interface:Log
Logs an fail-level message.- Specified by:
fail
in interfaceLog
- Overrides:
fail
in classKernelProxy
-
fromValue
public static BootKernel fromValue(Value moduleConfig)
-
-