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 interfaceBuilds aContextwhich can communicate with a specific application. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUsed with theNamedannotation to designate context types which are local, as in they are not sent via remote invocation.static final StringUsed with theNamedannotation to designate context types which are remote, as in they are sent via remote invocation. -
Method Summary
Modifier and TypeMethodDescriptionGets theEventContext.Gets theHandlerContext.Gets theIndexContextassocaited with thisContextGets theManifestContextwhich provides metadata to about the application to the rest of the application.Gets theResourceContextassocaited with thisContextGets theSchedulerContextassocaited with thisContextGets theTaskContext.voidshutdown()voidstart()Starts the context.
-
Field Details
-
LOCAL
Used with theNamedannotation to designate context types which are local, as in they are not sent via remote invocation.- See Also:
-
REMOTE
Used with theNamedannotation 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 theResourceContextassocaited with thisContext- Returns:
- the
ResourceContext
-
getSchedulerContext
SchedulerContext getSchedulerContext()Gets theSchedulerContextassocaited with thisContext- Returns:
- the
SchedulerContext
-
getIndexContext
IndexContext getIndexContext()Gets theIndexContextassocaited 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 theManifestContextwhich provides metadata to about the application to the rest of the application.- Returns:
- the
ManifestContext
-