Package dev.getelements.elements.rt
Class SimpleContext
java.lang.Object
dev.getelements.elements.rt.SimpleContext
- All Implemented Interfaces:
Context
,NodeLifecycle
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.rt.Context
Context.Factory
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theEventContext
.Gets theHandlerContext
.Gets theIndexContext
assocaited with thisContext
Gets theManifestContext
which provides metadata to about the application to the rest of the application.Gets theResourceContext
assocaited with thisContext
Gets theSchedulerContext
assocaited with thisContext
Gets theTaskContext
.void
nodePostStop
(Node node) Called just after theNode
has stopped accepting connections.void
nodePreStart
(Node node) Called before theNode
is up and accepting connectionsvoid
setEventContext
(EventContext eventContext) void
setHandlerContext
(HandlerContext handlerContext) void
setIndexContext
(IndexContext indexContext) void
setManifestContext
(ManifestContext manifestContext) void
setResourceContext
(ResourceContext resourceContext) void
setResourceLoader
(ResourceLoader resourceLoader) void
setResourceService
(ResourceService resourceService) void
setScheduler
(Scheduler scheduler) void
setSchedulerContext
(SchedulerContext schedulerContext) void
setTaskContext
(TaskContext taskContext) void
shutdown()
void
start()
Starts the context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.remote.NodeLifecycle
nodePostStart, nodePreStop
-
Constructor Details
-
SimpleContext
public SimpleContext()
-
-
Method Details
-
start
public void start()Description copied from interface:Context
Starts the context. -
shutdown
public void shutdown()Description copied from interface:Context
-
nodePreStart
Description copied from interface:NodeLifecycle
Called before theNode
is up and accepting connections- Specified by:
nodePreStart
in interfaceNodeLifecycle
- Parameters:
node
-
-
nodePostStop
Description copied from interface:NodeLifecycle
Called just after theNode
has stopped accepting connections.- Specified by:
nodePostStop
in interfaceNodeLifecycle
- Parameters:
node
-
-
getResourceContext
Description copied from interface:Context
Gets theResourceContext
assocaited with thisContext
- Specified by:
getResourceContext
in interfaceContext
- Returns:
- the
ResourceContext
-
getSchedulerContext
Description copied from interface:Context
Gets theSchedulerContext
assocaited with thisContext
- Specified by:
getSchedulerContext
in interfaceContext
- Returns:
- the
SchedulerContext
-
getIndexContext
Description copied from interface:Context
Gets theIndexContext
assocaited with thisContext
- Specified by:
getIndexContext
in interfaceContext
- Returns:
- the
IndexContext
-
getHandlerContext
Description copied from interface:Context
Gets theHandlerContext
.- Specified by:
getHandlerContext
in interfaceContext
- Returns:
- the
HandlerContext
-
getTaskContext
Description copied from interface:Context
Gets theTaskContext
.- Specified by:
getTaskContext
in interfaceContext
- Returns:
- the
TaskContext
-
getManifestContext
Description copied from interface:Context
Gets theManifestContext
which provides metadata to about the application to the rest of the application.- Specified by:
getManifestContext
in interfaceContext
- Returns:
- the
ManifestContext
-
getEventContext
Description copied from interface:Context
Gets theEventContext
.- Specified by:
getEventContext
in interfaceContext
- Returns:
- the
EventContext
-
setResourceContext
@Inject public void setResourceContext(@Named("dev.getelements.elements.rt.context.local") ResourceContext resourceContext) -
setSchedulerContext
@Inject public void setSchedulerContext(@Named("dev.getelements.elements.rt.context.local") SchedulerContext schedulerContext) -
setIndexContext
@Inject public void setIndexContext(@Named("dev.getelements.elements.rt.context.local") IndexContext indexContext) -
setHandlerContext
@Inject public void setHandlerContext(@Named("dev.getelements.elements.rt.context.local") HandlerContext handlerContext) -
setTaskContext
@Inject public void setTaskContext(@Named("dev.getelements.elements.rt.context.local") TaskContext taskContext) -
setManifestContext
@Inject public void setManifestContext(@Named("dev.getelements.elements.rt.context.local") ManifestContext manifestContext) -
setEventContext
@Inject public void setEventContext(@Named("dev.getelements.elements.rt.context.local") EventContext eventContext) -
getScheduler
-
setScheduler
-
getResourceLoader
-
setResourceLoader
-
getResourceService
-
setResourceService
-