public class RuntimeContext extends com.streamscape.sef.dispatcher.AbstractRuntimeContext implements FabricComponent, FabricContext, DSLComponent
Title: Service Event Fabric Runtime
Description: The context is a light-weight run time bindery of all Service Event Fabric objects that are resident in a given JVM.
Runtime Context
establishes the fabric runtime environment. It must be
initialized in order begin working with the StreamScape API. The context encapsulates a Bindery
(registry) for all run-time Components as well as the Repository Context
which
serves as a core mechanism for holding all critical runtime configuration objects. The
default repository implementation is a StreamScape embedded data store, although other
implementations are possible.
The runtime context is a top reference object for all Service Event Fabric components that are loaded into a particular JVM. It is implemented as a singleton with a static initializer. It allows fabric components to discover and interoperate with each other in a variety of environments. Specifically, the context may be initiated to run as Application Embedded, or executing in an External Service Container such as Spring or Mule; or as part of the StreamScape Service Event Fabric container. Here is a usage example that initializes the context:
pubic void startService() { // The first call initializes the context. RuntimeContext context = RuntimeContext.getInstance(); // Prints the environment variables. context.printEnvironment(); ... }
This sequence of method calls will create a new Runtime Context
object
and print out the environment variables that are set up in the context. Since the context
is a singleton that uses a static initializer the first method call will trigger the
initializer and load the deployment descriptor that describes the basics of the runtime environment.
WARNING!!! A failed runtime initialization implies that the context for the Service Event Fabric cannot be established properly. The act of initializing the context loads the communication kernel and the configuration repository into the JVM and registers the application as a fabric node. Therefore an application that has failed to initialize it's runtime context properly will be automatically shut down and not allowed to proceed in order to avoid partially initialized nodes from registering with the fabric's network.
A runtime context is initialized by a series of configuration variables. The variables are passed to the context from several sources. The main set of variables is obtained from the Runtime Context Deployment Descriptor. This is a special JAR file called stdeploy.jar that is created by the deployment descriptor building tool. The JAR file may be password protected for further security and contains the descriptor object serialized as an XML document.
Variables may also be added via the standard -D
parameters for JVM initialization. The
JVM initialization parameters may override those specified in the deployment descriptor. For example adding
-Djava.naming.factory.initial=com.streamscape.repository.provider.file.FSContext
will override the
initial context setting specified in the deployment descriptor.
The deployment descriptor may also contain parameters needed by the Repository Context
. The
streamscape.repository.parameters
property can be loaded with a URL style list of typed parameters.
Parameter data type is specified by attaching a %[data_type_hint]
to the value. Values without
type hints are interpreted as java.lang.String
For example a user may specify the following:
-Dstreamscape.repository.parameters=FaultTolerant=true&initialConnectTimeout=45%I
. The following
hints are supported:
java.lang.Long
data typejava.lang.Integer
data typejava.lang.Double
data typejava.lang.Float
data typejava.lang.Boolean
data typeAfter the runtime context is established users may take advantage of the Service Event Fabric infrastructure and communication facilities. Fabric components may be created and bound into the runtime environment.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
addAdvisoryListener(RuntimeAdvisoryListener listener) |
void |
bind(FabricComponent component)
Binds a fabric component to the
Runtime Context bindery. |
AcceptorFactoryManager |
getAcceptorManager() |
com.streamscape.sef.pool.AccessorsPool |
getAccessorsPool() |
AdvisoryDatagramFactory |
getAdvisoryDatagramFactory()
Returns an Advisory Datagram Factory of the context.
|
AnnotationManager |
getAnnotationManager()
Returns an Annotation Manager of the context.
|
AuthenticationModuleFactory |
getAuthenticationModuleFactory() |
java.util.List |
getBoundComponents()
Returns a list of components bound to this context.
|
RuntimeContext |
getCallable() |
com.streamscape.lib.loader.ClassLoaderRegistry |
getClassLoaderRegistry()
Returns a class loader registry of the context.
|
java.lang.String |
getClusterName() |
ComponentModel |
getComponentModel()
Returns a model of the component.
|
ComponentReference |
getComponentReference()
Returns a
ComponentReference associated with the component. |
ConfigurationState |
getConfigurationState()
Returns a configuration state of the current node.
|
FabricContainer |
getContainer()
Returns the Container associated with the context.
|
ContextId |
getContextId()
Returns the Context Id of this Fabric Component.
|
ConverterPluginManager |
getConverterPluginManager() |
DatagramFactoryManager |
getDatagramFactoryManager()
Returns a Datagram Factory Manager of the context.
|
DatagramPrototypeCache |
getDatagramPrototypeCache()
Returns a Datagram Prototype Cache of the context.
|
DatagramPrototypeFactory |
getDatagramPrototypeFactory()
Returns a Datagram Prototype Factory of the context.
|
DataspaceManager |
getDataspaceManager()
Returns a Data Space Manager for the data store bound to this context.
|
DeploymentDescriptor |
getDeploymentDescriptor() |
java.lang.String |
getDeploymentDescriptorFilename() |
DiscoveryModule |
getDiscoveryModule()
Returns an active Discovery Module of the context.
|
DiscoveryModuleFactory |
getDiscoveryModuleFactory()
Returns a Discovery Module Factory of the context.
|
java.lang.String |
getDomain()
Returns a domain name of the Fabric.
|
DropBoxManager |
getDropBoxManager() |
com.streamscape.sef.dropbox.DropBoxManagerRemoteImpl |
getDropBoxManagerRemote() |
java.util.Map |
getEnvironment() |
EventDatagramFactory |
getEventDatagramFactory()
Returns an Event Datagram Factory of the context.
|
EventIdentityPluginManager |
getEventIdentityPluginManager() |
EventScope |
getEventScope()
Returns the scope of events that are generated by the component.
|
ExceptionDatagramFactory |
getExceptionDatagramFactory()
Returns an Exception Datagram Factory of the context.
|
FabricExchange |
getExchange()
Returns the Exchange associated with the context.
|
FabricAddress |
getFabricAddress()
Returns the
Fabric Address for this fabric component. |
java.util.List |
getFabricComponentsByModel(ComponentModel model)
Finds and returns a list of bound components having a specified model.
|
java.util.UUID |
getFabricUID()
Returns an unique identifier of the Fabric.
|
java.io.File |
getFileInStartupDir(java.lang.String path) |
GlobalVariableFactory |
getGlobalVariableFactory()
Returns the
Global Variable Factory associated with the context. |
FabricGroupManager |
getGroupManager()
Returns the
Group Manager associated with the context. |
com.streamscape.sef.network.http.server.authentication.runtime.HTTPAuthenticationManager |
getHTTPAuthenticationManager() |
int |
getInitLevel() |
static RuntimeContext |
getInstance()
Initializes the Runtime Context for a calling application and returns an instance of the
RuntimeContext object that allows users to interact with the fabric's runtime,
configuration environment and component registry. |
JSerializer |
getJSerializer()
Returns a default Java Serializer of the context.
|
JSerializerFactory |
getJSerializerFactory()
Returns the Java Serializer Factory of the context.
|
JSONSerializer |
getJSONSerializer()
Returns a default JSON Serializer of the context.
|
JSONSerializerFactory |
getJSONSerializerFactory()
Returns the JSON Serializer Factory of the context.
|
com.streamscape.slex.SemanticLexiconManager |
getLexiconManager() |
com.streamscape.slex.SemanticLexiconProcessor |
getLexiconProcessor() |
Logger |
getLogger() |
java.util.List |
getManagedComponents()
This method returns all fabric managed components.
|
Moderator |
getModerator() |
java.lang.String |
getName()
Returns the name of the component.
|
FabricNodeRole |
getNodeRole()
Return a role of the current node.
|
java.util.TimeZone |
getNodeTimezone() |
ObjectMediationFactoryManager |
getObjectMediationFactoryManager()
Returns an Object Mediation Factory Manager of the context.
|
OpaqueDatagramFactory |
getOpaqueDatagramFactory()
Returns an Opaque Datagram Factory of the context.
|
com.streamscape.lib.loader.PackageLoaderRegistry |
getPackageLoaderRegistry()
Returns the
Package Loader Registry of the context. |
RuntimeManifestManager |
getPackageManifestManager()
Returns the
Package Manifest Manager for this runtime environment. |
PeerState |
getPeerState()
Returns a current Peer State of the Runtime in the Fabric.
|
RepositoryAccessor |
getRepositoryAccessor()
Returns an accessor to the Repository bound to the context.
|
long |
getRepositoryContextTxTimeout() |
int |
getRunLevel() |
Scheduler |
getScheduler()
Returns the
Scheduler associated with the context. |
SDRManagerFactory |
getSDRManagerFactory()
Returns a SDR Manager Factory of the context.
|
SecurityContext |
getSecurityContext()
Returns a Security Context associated with the user owning this component.
|
SecurityManager |
getSecurityManager()
Returns an instance of
SecurityManager that allows
users to work with security credentials, authorization and authentication mechanisms
supported by the application fabric. |
AliasManager |
getSemanticAliasManager()
Returns an Alias Manager of the context.
|
SemanticTypeCache |
getSemanticTypeCache()
Returns a Semantic Type Cache of the context.
|
SemanticTypeFactory |
getSemanticTypeFactory()
Returns a Semantic Type Factory of the context.
|
ServiceManager |
getServiceManager() |
ShutdownController |
getShutdownController() |
ShutdownListener |
getShutdownListener() |
long |
getShutdownTimeout()
Returns a time (in seconds) of waiting for normal shutdown of the context.
|
java.lang.String |
getStartupDir()
Returns a directory where the Callable application is launched.
|
static java.lang.String |
getStartupDir(com.streamscape.runtime.deploy.CtxDeploymentDescriptor deploymentDescriptor) |
ComponentState |
getState() |
StatsMonitor |
getStatsMonitor()
Returns the statistics monitor for this runtime.
|
java.lang.String |
getSTRootDir() |
java.lang.ClassLoader |
getSystemClassLoaderChain()
Returns a root of the registry's class loader chain.
|
SystemEnvironment |
getSystemEnvironment()
Returns the system environment object containing properties and parameters associated with the runtime instance.
|
TLPAcceptorFactory |
getTLPAcceptorFactory() |
java.util.List |
getTLPAcceptors()
Returns a list of addresses of started TLP acceptors.
|
java.lang.String |
getType()
Returns the type of the component.
|
TypeAnalyzerFactory |
getTypeAnalyzerFactory()
Returns a Type Analyzer Factory of the context.
|
java.lang.String |
getUserName() |
XSerializer |
getXSerializer()
Returns a default XML Serializer of the context.
|
XSerializerFactory |
getXSerializerFactory()
Returns the XML Serializer Factory of the context.
|
boolean |
hasBoundEventIds() |
boolean |
isClustered() |
boolean |
isCoherenceAgentBound()
Checks if the context has a Coherence Agent bound to it.
|
boolean |
isDataspaceBound()
Checks if the context has a Dataspace bound to it.
|
static boolean |
isInitialized() |
boolean |
isPresenceEnabled()
Checks if the a presence is enabled in the context.
|
boolean |
isRepositoryBound()
Checks if the context has a Repository bound to it.
|
boolean |
isSecurityEnabled()
Checks if a security is enabled in the context.
|
boolean |
isStandalone() |
java.util.List |
listAdvisoryListeners() |
FabricComponent |
lookupComponent(ContextId contextId)
Finds and returns a bound component by its
Context Id . |
FabricComponent |
lookupComponentByFQName(java.lang.String fqName)
Finds and returns a bound component with the specified fully qualified name.
|
FabricComponent |
lookupComponentByName(java.lang.String name)
Returns the first
Fabric Component that matches the name. |
ServiceContext |
lookupServiceContext(Service service)
Returns the
Container Context associated with this service OSF service instance. |
PingResult |
ping() |
PingResult |
ping(java.lang.String version) |
void |
printEnvironment() |
void |
printRuntimeContext()
Prints the list of components registered in the bindery.
|
void |
raiseRuntimeAdvisory(RuntimeAdvisory event)
Raises the specified
RuntimeAdvisory with the OBSERVABLE event scope. |
void |
raiseRuntimeAdvisory(RuntimeAdvisory event,
EventScope eventScope)
Raises the specified
RuntimeAdvisory with the specified event scope. |
void |
removeAdvisoryListener(java.lang.String listenerName) |
void |
restart() |
static void |
setAdminMode(boolean adminMode,
java.lang.String adminURL) |
void |
setConfigurationState(ConfigurationState configurationState)
Sets the specified configuration state of the current node.
|
static void |
setDefaultDataspaceLogger(DataspaceLogger defaultDataspaceLogger) |
static void |
setDefaultServiceLogger(Logger defaultServiceLogger) |
void |
setEventScope(EventScope scope) |
static void |
setInitMode(boolean initMode) |
void |
setLogger(Logger logger) |
static void |
setMaintainMode(boolean maintainMode) |
static void |
setNoJoinMode(boolean noJoinMode) |
static void |
setNoTlpMode(boolean noTlpMode) |
static void |
setPrintBanner(boolean printBanner) |
void |
setShutdownController(ShutdownController shutdownController) |
void |
setShutdownListener(ShutdownListener shutdownListener) |
void |
setShutdownTimeout(long timeout)
Sets the time (in seconds) of waiting for normal shutdown of the context.
|
void |
shutdown()
Shuts down the context.
|
void |
shutdownAll() |
FabricComponent |
unbind(ContextId id)
Unbinds the fabric component from the
Runtime Context bindery. |
void |
unload()
Unloads this context.
|
getFullName, isNativeContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentModel, getComponentReference, getContextId, getEventScope, getFabricAddress, getName, getSecurityContext, getType
isNativeContext
getType
public ClientConfigurationFactory ClientConfigurationFactory
public JDBCConfigurationFactory JDBCConfigurationFactory
public TransportConfigurationFactory TransportConfigurationFactory
public ServiceConfigurationFactory ServiceConfigurationFactory
public SemanticObjectReferenceStore ObjectReferenceStore
public PackageStore RuntimePackageStore
public static final long DEFAULT_SHUTDOWN_TIMEOUT
public static final java.lang.String STROOT
public static final java.lang.String STARTUP_DIR
public static final java.lang.String NAME
public static final java.lang.String CLUSTER
public static final java.lang.String DEPLOYMENT
public static final java.lang.String AUTO_UNLOAD
public static final java.lang.String AUTOBIND_DATASPACE
public static final java.lang.String AUTOBIND_COHERENCE
public static final java.lang.String PRESENTITY_KEY
public static final java.lang.String SECURITY_ENABLED_KEY
public static final java.lang.String SEPARATOR
public static final java.lang.String STRUNTIME_ACTIVE_KEY
public static final java.lang.String STRUNTIME_INITIALIZED
public static final java.lang.String STRUNTIME_INITIALIZING
public static final java.lang.String STRUNTIME_NOT_INITIALIZED
public static final java.lang.String DISCOVERY_FABRIC_DIRECTORY
public static final java.lang.String DISCOVERY_MULTICAST_ENABLED
public static final java.lang.String DISCOVERY_MULTICAST_ADDRESS
public static final java.lang.String DISCOVERY_MULTICAST_WAITING_TIME
public static final java.lang.String DISCOVERY_MULTICAST_USE_ACCEPTORS
public static void setInitMode(boolean initMode)
public static void setMaintainMode(boolean maintainMode)
public static void setNoTlpMode(boolean noTlpMode)
public static void setNoJoinMode(boolean noJoinMode)
public static void setAdminMode(boolean adminMode, java.lang.String adminURL)
public static void setPrintBanner(boolean printBanner)
public static void setDefaultServiceLogger(Logger defaultServiceLogger)
public static void setDefaultDataspaceLogger(DataspaceLogger defaultDataspaceLogger)
public int getRunLevel()
public int getInitLevel()
public ConfigurationState getConfigurationState()
public void setConfigurationState(ConfigurationState configurationState)
configurationState
- the state to be set.public static java.lang.String getStartupDir(com.streamscape.runtime.deploy.CtxDeploymentDescriptor deploymentDescriptor) throws java.io.IOException
java.io.IOException
public PingResult ping()
public PingResult ping(java.lang.String version)
public void unload()
public final boolean isStandalone()
public final boolean isClustered()
public final java.lang.String getClusterName()
public final java.lang.String getSTRootDir()
public final java.lang.String getStartupDir()
SLCallable
getStartupDir
in interface SLCallable
public final java.io.File getFileInStartupDir(java.lang.String path)
public final java.util.Map getEnvironment()
public final long getRepositoryContextTxTimeout()
public void printEnvironment()
public static RuntimeContext getInstance()
RuntimeContext
object that allows users to interact with the fabric's runtime,
configuration environment and component registry.
public static boolean isInitialized()
public final com.streamscape.lib.loader.PackageLoaderRegistry getPackageLoaderRegistry()
Package Loader Registry
of the context.
public final com.streamscape.lib.loader.ClassLoaderRegistry getClassLoaderRegistry()
FabricContext
getClassLoaderRegistry
in interface FabricContext
getClassLoaderRegistry
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final java.lang.ClassLoader getSystemClassLoaderChain()
getSystemClassLoaderChain
in interface FabricContext
public final void bind(FabricComponent component) throws RuntimeContextException
Runtime Context
bindery.
ContextId
.component
- the component to be bound.RuntimeContextException
- if some error occurs.public final FabricComponent unbind(ContextId id) throws RuntimeContextException
Runtime Context
bindery.
RuntimeContext.AUTO_UNLOAD
is set to true
and
this is the last bound component being unbound, the context will be unloaded.
This allows the runtime context to perform independent cleanup in cases where
the shutdown handler does not get called by the hosting environment.id
- the identifier that uniquely identifies the removed component.RuntimeContextException
- if some error occurs.public final FabricComponent lookupComponent(ContextId contextId) throws RuntimeContextException
Context Id
.contextId
- the Context Id
of a component to be found.null
if component is not found.RuntimeContextException
- if contextId is null.public final FabricComponent lookupComponentByFQName(java.lang.String fqName) throws java.lang.RuntimeException
fqName
- the fully qualified name of a component ot be found.null
if component is not found.java.lang.RuntimeException
- if the fqName is wrong.public final FabricComponent lookupComponentByName(java.lang.String name) throws RuntimeContextException
Fabric Component
that matches the name.
ContextId
be used for accurate and distinct component searching.name
- the name of a component to be found.null
if component is not found.RuntimeContextException
- if the name is null.public final ServiceContext lookupServiceContext(Service service) throws RuntimeContextException
Container Context
associated with this service OSF service instance.
service
- the service associated with a context to be found.null
if context is not found.RuntimeContextException
- if the service is null.public final java.util.List getFabricComponentsByModel(ComponentModel model)
model
- the model of components to be found.public final RepositoryAccessor getRepositoryAccessor() throws java.lang.RuntimeException
getRepositoryAccessor
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
java.lang.RuntimeException
- if the Repository is not bound.public final boolean isRepositoryBound()
true
if the context has a Repository bound to it, false
otherwise.public final java.util.List getBoundComponents()
getBoundComponents
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public java.util.List getManagedComponents()
public final void printRuntimeContext()
public final com.streamscape.slex.SemanticLexiconProcessor getLexiconProcessor()
public RuntimeContext getCallable()
getCallable
in interface DSLComponent
public final void raiseRuntimeAdvisory(RuntimeAdvisory event, EventScope eventScope) throws java.lang.RuntimeException
RuntimeAdvisory
with the specified event scope.
Runtime Context
events. From the perspective of the observer all advisories originate with the runtime.
Component level notifications are handled separately by the Notification Factory
.raiseRuntimeAdvisory
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
event
- the advisory to be sent.java.lang.RuntimeException
- if some error occurs.public final void raiseRuntimeAdvisory(RuntimeAdvisory event) throws java.lang.RuntimeException
RuntimeAdvisory
with the OBSERVABLE
event scope.event
- the advisory to be sent.java.lang.RuntimeException
- if some error occurs.public void shutdown()
public void shutdownAll()
public void restart()
public final long getShutdownTimeout()
The default timeout is DEFAULT_SHUTDOWN_TIMEOUT
seconds).
public final void setShutdownTimeout(long timeout)
timeout
- the timeout (in seconds) to be set.public final void setShutdownController(ShutdownController shutdownController)
public final ShutdownController getShutdownController()
public final EventIdentityPluginManager getEventIdentityPluginManager()
public final ConverterPluginManager getConverterPluginManager()
public SystemEnvironment getSystemEnvironment()
public final StatsMonitor getStatsMonitor()
public final ObjectMediationFactoryManager getObjectMediationFactoryManager()
FabricContext
getObjectMediationFactoryManager
in interface FabricContext
public final XSerializer getXSerializer()
FabricContext
getXSerializer
in interface FabricContext
public final JSerializer getJSerializer()
FabricContext
getJSerializer
in interface FabricContext
public final JSONSerializer getJSONSerializer()
FabricContext
getJSONSerializer
in interface FabricContext
public final XSerializerFactory getXSerializerFactory()
FabricContext
getXSerializerFactory
in interface FabricContext
XSerializer
factory.public final JSerializerFactory getJSerializerFactory()
FabricContext
getJSerializerFactory
in interface FabricContext
JSerializer
factory.public final JSONSerializerFactory getJSONSerializerFactory()
FabricContext
getJSONSerializerFactory
in interface FabricContext
JSONSerializer
factory.public final com.streamscape.slex.SemanticLexiconManager getLexiconManager()
public final boolean isDataspaceBound()
isDataspaceBound
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
true
if the context has a Dataspace bound to it, false
otherwise.public final DataspaceManager getDataspaceManager() throws java.lang.RuntimeException
java.lang.RuntimeException
- if a Data Space is not bound to the context.public final ServiceManager getServiceManager()
public final boolean isPresenceEnabled()
true
if a presence is enabled in the context, false
otherwise.public final boolean isSecurityEnabled()
isSecurityEnabled
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
true
if a security is enabled in the context, false
otherwise.public final SecurityManager getSecurityManager() throws SecurityManagerException
SecurityManager
that allows
users to work with security credentials, authorization and authentication mechanisms
supported by the application fabric.
SecurityManager
also provides a common mechanism for accessing the current
SecurityContext
of a given component.
A SecurityContext
allows developers to access resources
such as data spaces and fabric connections in a secure fashion by supplying the context instead
of static credentials (such as user/password pair).SecurityManager
of the context.SecurityManagerException
- if a security is disabled in the context.public final DropBoxManager getDropBoxManager()
public final com.streamscape.sef.dropbox.DropBoxManagerRemoteImpl getDropBoxManagerRemote()
public final AuthenticationModuleFactory getAuthenticationModuleFactory() throws SecurityManagerException
SecurityManagerException
public final AcceptorFactoryManager getAcceptorManager()
public final TLPAcceptorFactory getTLPAcceptorFactory()
getTLPAcceptorFactory
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final FabricContainer getContainer()
TNode
nor MNode
),
this method returns null
.getContainer
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final FabricExchange getExchange()
getExchange
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final Moderator getModerator()
getModerator
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final void addAdvisoryListener(RuntimeAdvisoryListener listener) throws RuntimeContextException
addAdvisoryListener
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
RuntimeContextException
public final void removeAdvisoryListener(java.lang.String listenerName) throws RuntimeContextException
removeAdvisoryListener
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
RuntimeContextException
public final java.util.List listAdvisoryListeners()
listAdvisoryListeners
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final DatagramFactoryManager getDatagramFactoryManager()
FabricContext
getDatagramFactoryManager
in interface FabricContext
public final DatagramPrototypeCache getDatagramPrototypeCache()
FabricContext
getDatagramPrototypeCache
in interface FabricContext
public final DatagramPrototypeFactory getDatagramPrototypeFactory()
FabricContext
getDatagramPrototypeFactory
in interface FabricContext
public final SemanticTypeCache getSemanticTypeCache()
FabricContext
AliasManager
.getSemanticTypeCache
in interface FabricContext
public final SemanticTypeFactory getSemanticTypeFactory()
FabricContext
getSemanticTypeFactory
in interface FabricContext
public final AliasManager getSemanticAliasManager()
FabricContext
getSemanticAliasManager
in interface FabricContext
public final DiscoveryModuleFactory getDiscoveryModuleFactory()
FabricContext
DiscoveryModule
objects.getDiscoveryModuleFactory
in interface FabricContext
public final DiscoveryModule getDiscoveryModule()
FabricContext
getDiscoveryModule
in interface FabricContext
public final TypeAnalyzerFactory getTypeAnalyzerFactory()
FabricContext
SemanticTypeCache
and ClassLoader
from the context.getTypeAnalyzerFactory
in interface FabricContext
public final SDRManagerFactory getSDRManagerFactory()
FabricContext
ReferencePathManager
instances.getSDRManagerFactory
in interface FabricContext
public final AdvisoryDatagramFactory getAdvisoryDatagramFactory()
FabricContext
AdvisoryEventDatagram
objects.getAdvisoryDatagramFactory
in interface FabricContext
public final OpaqueDatagramFactory getOpaqueDatagramFactory()
FabricContext
OpaqueDatagram
objects.
Opaque datagrams are semi-structured objects that are light-weight entities.
They are optimal for high performance message passing or for exchanging non-structured data.getOpaqueDatagramFactory
in interface FabricContext
public final EventDatagramFactory getEventDatagramFactory()
FabricContext
EventDatagram
objects.getEventDatagramFactory
in interface FabricContext
public final ExceptionDatagramFactory getExceptionDatagramFactory()
FabricContext
ExceptionEventDatagram
objects.getExceptionDatagramFactory
in interface FabricContext
public final com.streamscape.sef.network.http.server.authentication.runtime.HTTPAuthenticationManager getHTTPAuthenticationManager()
public final RuntimeManifestManager getPackageManifestManager()
Package Manifest Manager
for this runtime environment.
Class Loaders
.getPackageManifestManager
in interface FabricComponent
public final AnnotationManager getAnnotationManager()
FabricContext
getAnnotationManager
in interface FabricContext
public void setShutdownListener(ShutdownListener shutdownListener)
public ShutdownListener getShutdownListener()
public FabricNodeRole getNodeRole()
public java.util.List getTLPAcceptors()
getTLPAcceptors
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final PeerState getPeerState()
getPeerState
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final java.lang.String getDeploymentDescriptorFilename()
public final DeploymentDescriptor getDeploymentDescriptor()
public final java.lang.String getDomain()
FabricContext
getDomain
in interface FabricContext
public final java.util.UUID getFabricUID()
FabricContext
getFabricUID
in interface FabricContext
getFabricUID
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final java.lang.String getUserName()
getUserName
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final boolean isCoherenceAgentBound()
isCoherenceAgentBound
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
true
if the context has a Coherence Agent bound to it, false
otherwise.public final GlobalVariableFactory getGlobalVariableFactory()
Global Variable Factory
associated with the context.public final Scheduler getScheduler()
Scheduler
associated with the context.public final FabricGroupManager getGroupManager()
Group Manager
associated with the context.getGroupManager
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public final java.util.TimeZone getNodeTimezone()
getNodeTimezone
in class com.streamscape.sef.dispatcher.AbstractRuntimeContext
public java.lang.String getType()
FabricComponent
getType
in interface FabricComponent
public java.lang.String getName()
FabricComponent
getName
in interface FabricComponent
public EventScope getEventScope()
FabricComponent
getEventScope
in interface FabricComponent
public void setEventScope(EventScope scope)
public ContextId getContextId()
FabricComponent
getContextId
in interface FabricComponent
public FabricAddress getFabricAddress()
FabricComponent
Fabric Address
for this fabric component.
TruFabric Link Protocol
.
The address bytes are as follows:
Event Source
in
order to definitively correlate any event to its source component.getFabricAddress
in interface FabricComponent
public ComponentModel getComponentModel()
FabricComponent
getComponentModel
in interface FabricComponent
public ComponentReference getComponentReference()
FabricComponent
ComponentReference
associated with the component.
This method will return null
if the component has LOCAL
event scope.
getComponentReference
in interface FabricComponent
public ComponentState getState()
public Logger getLogger()
public void setLogger(Logger logger)
public com.streamscape.sef.pool.AccessorsPool getAccessorsPool()
public SecurityContext getSecurityContext()
FabricComponent
null
if a security is disabled in the Fabric.getSecurityContext
in interface FabricComponent
public boolean hasBoundEventIds()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.