-
- All Known Subinterfaces:
KernelBinding
,KernelContext
- All Known Implementing Classes:
ActorKernel
,AuthenticatorKernel
,BootKernel
,DbStoreKernel
,JavaKernel
,JsKernel
,KernelProxy
,MemStoreKernel
,MetaKernel
,RemoteKernel
,ServiceKernel
,WebServiceKernel
public interface Kernel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <A extends Agent>
AgentFactory<A>createAgentFactory(Class<? extends A> agentClass)
AgentFactory<?>
createAgentFactory(AgentDef agentDef, ClassLoader classLoader)
<P extends Plane>
PlaneFactory<P>createPlaneFactory(Class<? extends P> planeClass)
PlaneFactory<?>
createPlaneFactory(PlaneDef planeDef, ClassLoader classLoader)
ServiceFactory<?>
createServiceFactory(ServiceDef serviceDef, ClassLoader classLoader)
AgentDef
defineAgent(Item agentConfig)
PlaneDef
definePlane(Item planeConfig)
ServiceDef
defineService(Item serviceConfig)
SpaceDef
defineSpace(Item spaceConfig)
Service
getService(String serviceName)
Space
getSpace(String spaceName)
Kernel
injectKernel(Kernel kernel)
Returns aKernel
implementation with the combined capabilities of thisKernel
implementation and the givenkernel
implementation.boolean
isStarted()
double
kernelPriority()
Returns the relative priority of thisKernel
implementation.<S extends Service>
SopenService(String serviceName, ServiceFactory<S> serviceFactory)
default Service
openService(ServiceDef serviceDef)
default Service
openService(ServiceDef serviceDef, ClassLoader classLoader)
Space
openSpace(SpaceDef spaceDef)
void
run()
void
start()
void
stop()
<T> T
unwrapKernel(Class<T> kernelClass)
-
-
-
Method Detail
-
kernelPriority
double kernelPriority()
Returns the relative priority of thisKernel
implementation. Kernel implementations with greater priority inject into kernel stacks before implementations with lower priority.
-
injectKernel
Kernel injectKernel(Kernel kernel)
Returns aKernel
implementation with the combined capabilities of thisKernel
implementation and the givenkernel
implementation.
-
unwrapKernel
<T> T unwrapKernel(Class<T> kernelClass)
-
defineService
ServiceDef defineService(Item serviceConfig)
-
createServiceFactory
ServiceFactory<?> createServiceFactory(ServiceDef serviceDef, ClassLoader classLoader)
-
openService
<S extends Service> S openService(String serviceName, ServiceFactory<S> serviceFactory)
-
openService
default Service openService(ServiceDef serviceDef, ClassLoader classLoader)
-
openService
default Service openService(ServiceDef serviceDef)
-
createPlaneFactory
PlaneFactory<?> createPlaneFactory(PlaneDef planeDef, ClassLoader classLoader)
-
createPlaneFactory
<P extends Plane> PlaneFactory<P> createPlaneFactory(Class<? extends P> planeClass)
-
createAgentFactory
AgentFactory<?> createAgentFactory(AgentDef agentDef, ClassLoader classLoader)
-
createAgentFactory
<A extends Agent> AgentFactory<A> createAgentFactory(Class<? extends A> agentClass)
-
isStarted
boolean isStarted()
-
start
void start()
-
stop
void stop()
-
run
void run()
-
-