Package dev.getelements.elements.rt
Interface Context
- All Known Implementing Classes:
ClusterContext
,SimpleContext
public interface Context
Represents the connection the backend cluster of services.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builds aContext
which can communicate with a specific application. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Used with theNamed
annotation to designate context types which are local, as in they are not sent via remote invocation.static final String
Used with theNamed
annotation to designate context types which are remote, as in they are sent via remote invocation. -
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
shutdown()
void
start()
Starts the context.
-
Field Details
-
LOCAL
Used with theNamed
annotation to designate context types which are local, as in they are not sent via remote invocation.- See Also:
-
REMOTE
Used with theNamed
annotation to designate context types which are remote, as in they are sent via remote invocation.- See Also:
-
-
Method Details
-
start
void start()Starts the context. -
shutdown
void shutdown() -
getResourceContext
ResourceContext getResourceContext()Gets theResourceContext
assocaited with thisContext
- Returns:
- the
ResourceContext
-
getSchedulerContext
SchedulerContext getSchedulerContext()Gets theSchedulerContext
assocaited with thisContext
- Returns:
- the
SchedulerContext
-
getIndexContext
IndexContext getIndexContext()Gets theIndexContext
assocaited with thisContext
- Returns:
- the
IndexContext
-
getHandlerContext
HandlerContext getHandlerContext()Gets theHandlerContext
.- Returns:
- the
HandlerContext
-
getTaskContext
TaskContext getTaskContext()Gets theTaskContext
.- Returns:
- the
TaskContext
-
getEventContext
EventContext getEventContext()Gets theEventContext
.- Returns:
- the
EventContext
-
getManifestContext
ManifestContext getManifestContext()Gets theManifestContext
which provides metadata to about the application to the rest of the application.- Returns:
- the
ManifestContext
-