public class ClientContext
extends com.streamscape.sef.dispatcher.AbstractClientContext
Title: Service Event Fabric Client
Description: A client context that denotes a client (network connected) fabric application context.
Service Event Fabric
. Client applications may connect to some active Runtime Context
or Fabric Process Node
or they may interact with a Runtime Context
or other Client
Context
applications by using an external transport or data exchange. For example a JMS compliant
Messaging System, file exchange or HTTP may be used by the client to submit event objects into the fabric. The
main function of the client context is to provide access to the Object Mediation
framework and the
Structured Data Object
factories. This allows developers to perform data mapping, produce and consume
events that are part of the fabric and otherwise act as simple clients.
The Client Context
and the Runtime Context
are mutually exclusive entities. An application
may use one or the other context, casting it self in the role of a fabric client or a full-fledged fabric node. Client
context does not support configuration persistence or any of the repository mechanisms. It does not require a
Deployment Descriptor
to function.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISCOVERY_FABRIC_DIRECTORY |
static java.lang.String |
DISCOVERY_MULTICAST_ADDRESS |
static java.lang.String |
DISCOVERY_MULTICAST_ENABLED |
static java.lang.String |
DISCOVERY_MULTICAST_USE_ACCEPTORS |
static java.lang.String |
DISCOVERY_MULTICAST_WAITING_TIME |
static java.lang.String |
SEPARATOR |
static java.lang.String |
STROOT |
Modifier and Type | Method and Description |
---|---|
SpecialSLSession |
createActivatorSession(java.lang.String url,
java.lang.String userName,
java.lang.String password,
long timeout) |
SpecialSLSession |
createDiagnosticSession(java.lang.String url,
java.lang.String userName,
java.lang.String password,
long timeout) |
java.util.List |
discover() |
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.
|
com.streamscape.lib.loader.ClassLoaderRegistry |
getClassLoaderRegistry()
Returns a class loader registry of the context.
|
ComponentModel |
getComponentModel()
Returns a model of the component.
|
ComponentReference |
getComponentReference()
Returns a
ComponentReference associated with the component. |
ContextId |
getContextId()
Returns the Context Id of this Fabric Component.
|
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.
|
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.
|
EventDatagramFactory |
getEventDatagramFactory()
Returns an Event Datagram Factory of the context.
|
EventScope |
getEventScope()
Returns the scope of events that are generated by the component.
|
ExceptionDatagramFactory |
getExceptionDatagramFactory()
Returns an Exception Datagram Factory of the context.
|
FabricAddress |
getFabricAddress()
Returns the
Fabric Address for this fabric component. |
java.util.UUID |
getFabricUID()
Returns an unique identifier of the Fabric.
|
java.lang.String |
getFullName() |
static ClientContext |
getInstance()
Obtains an instance of the client context (singleton).
|
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.cli.ClientLoaderRegistry |
getLoaderRegistry()
Returns a client loader registry of the context.
|
Logger |
getLogger() |
java.lang.String |
getName()
Returns the name of the component.
|
ObjectMediationFactoryManager |
getObjectMediationFactoryManager()
Returns an Object Mediation Factory Manager of the context.
|
OpaqueDatagramFactory |
getOpaqueDatagramFactory()
Returns an Opaque Datagram Factory of the context.
|
PackageManifestManager |
getPackageManifestManager()
Returns the
Package Manifest Manager for the component. |
SDRManagerFactory |
getSDRManagerFactory()
Returns a SDR Manager Factory of the context.
|
SecurityContext |
getSecurityContext()
Returns a Security Context associated with the user owning this component.
|
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.
|
ComponentState |
getState() |
java.lang.ClassLoader |
getSystemClassLoaderChain()
Returns a root of the registry's class loader chain.
|
java.lang.String |
getType()
Returns the type of the component.
|
TypeAnalyzerFactory |
getTypeAnalyzerFactory()
Returns a Type Analyzer Factory of the context.
|
XSerializer |
getXSerializer()
Returns a default XML Serializer of the context.
|
XSerializerFactory |
getXSerializerFactory()
Returns the XML Serializer Factory of the context.
|
boolean |
hasBoundEventIds() |
boolean |
isNativeContext(com.streamscape.slex.MFSession session)
Checks if the specified session represents a context that is native to this Callable object.
|
void |
setEventScope(EventScope scope) |
void |
setLogger(Logger logger) |
void |
shutdown() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStartupDir
public static final java.lang.String STROOT
public static final java.lang.String SEPARATOR
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 ClientContext getInstance() throws ClientContextRuntimeException
ClientContextRuntimeException
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.AbstractClientContext
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 DiscoveryModuleFactory getDiscoveryModuleFactory()
FabricContext
DiscoveryModule
objects.getDiscoveryModuleFactory
in interface FabricContext
public DiscoveryModule getDiscoveryModule()
FabricContext
getDiscoveryModule
in interface FabricContext
public TypeAnalyzerFactory getTypeAnalyzerFactory()
FabricContext
SemanticTypeCache
and ClassLoader
from the context.getTypeAnalyzerFactory
in interface FabricContext
public SDRManagerFactory getSDRManagerFactory()
FabricContext
ReferencePathManager
instances.getSDRManagerFactory
in interface FabricContext
public ObjectMediationFactoryManager getObjectMediationFactoryManager()
FabricContext
public AnnotationManager getAnnotationManager()
FabricContext
public AdvisoryDatagramFactory getAdvisoryDatagramFactory()
FabricContext
AdvisoryEventDatagram
objects.public 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.public ExceptionDatagramFactory getExceptionDatagramFactory()
FabricContext
ExceptionEventDatagram
objects.public EventDatagramFactory getEventDatagramFactory()
FabricContext
EventDatagram
objects.public XSerializer getXSerializer()
FabricContext
public JSerializer getJSerializer()
FabricContext
public JSONSerializer getJSONSerializer()
FabricContext
public XSerializerFactory getXSerializerFactory()
FabricContext
XSerializer
factory.public JSerializerFactory getJSerializerFactory()
FabricContext
JSerializer
factory.public JSONSerializerFactory getJSONSerializerFactory()
FabricContext
JSONSerializer
factory.public com.streamscape.cli.ClientLoaderRegistry getLoaderRegistry()
public com.streamscape.lib.loader.ClassLoaderRegistry getClassLoaderRegistry()
FabricContext
public final java.lang.ClassLoader getSystemClassLoaderChain()
getSystemClassLoaderChain
in interface FabricContext
getSystemClassLoaderChain
in class com.streamscape.sef.dispatcher.AbstractClientContext
public java.util.List discover()
public void shutdown() throws ClientContextException
ClientContextException
public SpecialSLSession createDiagnosticSession(java.lang.String url, java.lang.String userName, java.lang.String password, long timeout) throws SLSessionException
createDiagnosticSession
in class com.streamscape.sef.dispatcher.AbstractClientContext
SLSessionException
public SpecialSLSession createActivatorSession(java.lang.String url, java.lang.String userName, java.lang.String password, long timeout) throws SLSessionException
createActivatorSession
in class com.streamscape.sef.dispatcher.AbstractClientContext
SLSessionException
public java.lang.String getType()
FabricComponent
getType
in interface FabricComponent
public java.lang.String getName()
FabricComponent
getName
in interface FabricComponent
public java.lang.String getFullName()
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 PackageManifestManager getPackageManifestManager()
FabricComponent
Package Manifest Manager
for the component.
Class Loaders
.getPackageManifestManager
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()
public boolean isNativeContext(com.streamscape.slex.MFSession session)
SLCallable
RuntimeMFSession
represents a context that is native to operations
that use the RuntimeContext
as a Callable object.isNativeContext
in interface SLCallable
session
- the session to be checked.true
if the specified context is native to this object, false
otherwise.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.