- java.lang.Object
-
- swim.kernel.KernelProxy
-
- swim.java.JavaKernel
-
- All Implemented Interfaces:
IpInterface
,Kernel
,KernelBinding
,KernelContext
,Log
public class JavaKernel extends KernelProxy
-
-
Field Summary
-
Fields inherited from class swim.kernel.KernelProxy
kernelBinding, kernelContext, STARTED, status, STATUS
-
-
Constructor Summary
Constructors Constructor Description JavaKernel()
JavaKernel(double kernelPriority)
-
Method Summary
-
Methods inherited from class swim.kernel.KernelProxy
bindTcp, bindTls, connectTcp, connectTls, createAuthenticator, createEdge, createHost, createHost, createLane, createLane, createLog, createLog, createMesh, createMesh, createNode, createNode, createPart, createPart, createPolicy, createPolicy, createSchedule, createServiceFactory, createStage, createStage, createStore, createStore, debug, defineAuthenticator, defineHost, defineLane, defineLog, defineMesh, defineNode, definePart, definePolicy, defineSchedule, defineService, defineSpace, defineStage, defineStore, didStart, didStop, error, fail, getHostDef, getLaneDef, getMeshDef, getNodeDef, getPartDef, getService, 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, openService, openSpace, reportDown, routeRequest, run, setKernelBinding, setKernelContext, stage, start, station, stop, trace, unwrapKernel, warn, willStart, 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
-
-
-
-
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
-
definePlane
public PlaneDef definePlane(Item planeConfig)
- Specified by:
definePlane
in interfaceKernel
- Specified by:
definePlane
in interfaceKernelContext
- Overrides:
definePlane
in classKernelProxy
-
defineJavaPlane
public JavaPlaneDef defineJavaPlane(Item planeConfig)
-
createPlaneFactory
public PlaneFactory<?> createPlaneFactory(PlaneDef planeDef, ClassLoader classLoader)
- Specified by:
createPlaneFactory
in interfaceKernel
- Specified by:
createPlaneFactory
in interfaceKernelContext
- Overrides:
createPlaneFactory
in classKernelProxy
-
createJavaPlaneFactory
public JavaPlaneFactory<?> createJavaPlaneFactory(JavaPlaneDef planeDef, ClassLoader classLoader)
-
loadPlaneClass
protected Class<? extends Plane> loadPlaneClass(String planeClassName, ClassLoader classLoader)
-
createPlaneFactory
public <P extends Plane> PlaneFactory<P> createPlaneFactory(Class<? extends P> planeClass)
- Specified by:
createPlaneFactory
in interfaceKernel
- Specified by:
createPlaneFactory
in interfaceKernelContext
- Overrides:
createPlaneFactory
in classKernelProxy
-
defineAgent
public AgentDef defineAgent(Item agentConfig)
- Specified by:
defineAgent
in interfaceKernel
- Specified by:
defineAgent
in interfaceKernelContext
- Overrides:
defineAgent
in classKernelProxy
-
defineJavaAgent
public JavaAgentDef defineJavaAgent(Item agentConfig)
-
createAgentFactory
public AgentFactory<?> createAgentFactory(AgentDef agentDef, ClassLoader classLoader)
- Specified by:
createAgentFactory
in interfaceKernel
- Specified by:
createAgentFactory
in interfaceKernelContext
- Overrides:
createAgentFactory
in classKernelProxy
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceKernelContext
- Overrides:
createAgentFactory
in classKernelProxy
-
createJavaAgentFactory
public JavaAgentFactory<?> createJavaAgentFactory(JavaAgentDef agentDef, ClassLoader classLoader)
-
loadAgentClass
protected Class<? extends Agent> loadAgentClass(String agentClassName, ClassLoader classLoader)
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceKernel
- Specified by:
createAgentFactory
in interfaceKernelContext
- Overrides:
createAgentFactory
in classKernelProxy
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceKernelContext
- Overrides:
createAgentFactory
in classKernelProxy
-
createAgentRoute
public <A extends Agent> AgentRoute<A> createAgentRoute(EdgeBinding edge, Class<? extends A> agentClass)
- Specified by:
createAgentRoute
in interfaceKernelContext
- Overrides:
createAgentRoute
in classKernelProxy
-
fromValue
public static JavaKernel fromValue(Value moduleConfig)
-
-