public class PrototypeFactory
extends com.streamscape.sef.dispatcher.AbstractFabricContextFactory
Title: Structured Data Objects
Description: Defines a factory working with event prototypes.
DatagramPrototypeFactory
for further information.
Supported EventDatagram
models are the following:
AcknowledgementEvent
AuditEvent
BytesEvent
DataEvent
DeltaEvent
ExceptionEvent
MailEvent
MapEvent
FileEvent
RowArrayEvent
RowChangeEvent
RowEvent
RowSetEvent
StreamEvent
StreamStateEvent
TextEvent
XMLEvent
XMPPEvent
OpaqueDatagram
models are the following:
Supported AdvisoryEventDatagram
models are the following:
Supported ExceptionEventDatagram
models are the following:
ExceptionEventDatagram
models are the following:
ApplicationFabricException
ClientException
DatabaseSQLException
FabricEventException
LanguageException
SQLQueryException
SQLQueryParseException
SQLQueryValidationException
ServiceFrameworkException
SoapFaultException
SoapRequestException
TransportException
ValidationException
XMLParseException
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
PrototypeFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addAdvisoryPrototype(java.lang.String eventId,
AdvisoryEventDatagram event)
Adds the specified
AdvisoryEventDatagram prototype to the environment. |
static void |
addAdvisoryPrototype(java.lang.String model,
java.lang.String eventId)
Adds an
AdvisoryEventDatagram prototype to the environment. |
static void |
addDataEventPrototype(java.lang.String eventId,
CloneableDataObject data)
Adds a
DataEvent prototype to the environment. |
static void |
addDataEventPrototype(java.lang.String eventId,
DataEvent event)
Adds the specified
DataEvent prototype to the environment. |
static void |
addDataEventPrototype(java.lang.String eventId,
java.lang.String semanticType)
Adds a
DataEvent prototype to the environment. |
static void |
addDeltaEventPrototype(java.lang.String eventId,
CloneableDataObject data)
Adds a
DeltaEvent prototype to the environment. |
static void |
addDeltaEventPrototype(java.lang.String eventId,
DeltaEvent event)
Adds the specified
DeltaEvent prototype to the environment. |
static void |
addDeltaEventPrototype(java.lang.String eventId,
java.lang.String semanticType)
Adds a
DeltaEvent prototype to the environment. |
static void |
addEventPrototype(java.lang.String eventId,
EventDatagram event)
Adds the specified
EventDatagram prototype to the environment. |
static void |
addEventPrototype(java.lang.String model,
java.lang.String eventId)
Adds an
EventDatagram prototype to the environment. |
static void |
addExceptionPrototype(java.lang.String eventId,
ExceptionEventDatagram event)
Adds the specified
ExceptionEventDatagram prototype to the environment. |
static void |
addExceptionPrototype(java.lang.String model,
java.lang.String eventId)
Adds an
ExceptionEventDatagram prototype to the environment. |
static void |
addOpaqueEventPrototype(java.lang.String eventId,
CloneableDataObject data)
Adds a
OpaqueEvent prototype to the environment. |
static void |
addOpaqueEventPrototype(java.lang.String eventId,
OpaqueEvent event)
Adds the specified
OpaqueEvent prototype to the environment. |
static void |
addOpaqueEventPrototype(java.lang.String eventId,
java.lang.String semanticType)
Adds a
OpaqueEvent prototype to the environment. |
static java.lang.String |
createEventId(java.lang.String instance)
Creates an event id corresponding to the specified standard prototype instance.
|
static java.lang.String |
createInstance(java.lang.String eventId)
Creates a standard prototype instance corresponding to the specified event id.
|
static boolean |
existsPrototype(java.lang.String eventId)
Checks if a prototype having the specified event id exists.
|
static void |
removeAdvisoryPrototype(java.lang.String eventId)
Removes a
AdvisoryEventDatagram prototype having the specified event id. |
static void |
removeEventPrototype(java.lang.String eventId)
Removes a
EventDatagram prototype having the specified event id. |
static void |
removeExceptionPrototype(java.lang.String eventId)
Removes a
ExceptionEventDatagram prototype having the specified event id. |
static void |
removeOpaqueEventPrototype(java.lang.String eventId)
Removes a
OpaqueEvent prototype having the specified event id. |
static void |
removePrototype(java.lang.String eventId)
Removes a prototype with the specified event id.
|
static void |
removePrototype(java.lang.String eventId,
boolean force)
Removes a prototype with the specified event id.
|
getContext, getContextType, hasContext
clone, getSerialVersionUID
public static void addAdvisoryPrototype(java.lang.String model, java.lang.String eventId) throws DatagramFactoryException
AdvisoryEventDatagram
prototype to the environment.
The added prototype will have the specified model (exact type of event datagram) and event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
model
- the model name of the prototype.eventId
- the event id of the prototype.DatagramFactoryException
- if some error occurs.public static void addAdvisoryPrototype(java.lang.String eventId, AdvisoryEventDatagram event) throws DatagramFactoryException
AdvisoryEventDatagram
prototype to the environment.
The added prototype will have the specified event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void removeAdvisoryPrototype(java.lang.String eventId) throws DatagramFactoryException
AdvisoryEventDatagram
prototype having the specified event id.
If the prototype does not exist, the method will do nothing.
In the Runtime Context the prototype will be unregistered from a configuration persistence mechanism.eventId
- the event id of a prototype to be removed.DatagramFactoryException
- if some error occurs.public static void addEventPrototype(java.lang.String model, java.lang.String eventId) throws DatagramFactoryException
EventDatagram
prototype to the environment.
The added prototype will have the specified model (exact type of event datagram) and event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
DataEvent
or DeltaEvent
models cannot be added by this method (an exception will be thrown).
The method will throw the exception if the prototype having the specified event id or instance already exists.model
- the model name of the prototype.eventId
- the event id of the prototype.DatagramFactoryException
- if some error occurs.public static void addEventPrototype(java.lang.String eventId, EventDatagram event) throws DatagramFactoryException
EventDatagram
prototype to the environment.
The added prototype will have the specified event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
DataEvent
or DeltaEvent
models cannot be added by this method (an exception will be thrown).
The method will throw the exception if the prototype having the specified event id or instance already exists.eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void addDataEventPrototype(java.lang.String eventId, java.lang.String semanticType) throws DatagramFactoryException
DataEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
A data object of the prototype will have the specified type.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
SemanticType
with the specified name does not exist.eventId
- the event id of the prototype.semanticType
- the name of SemanticType
of the prototype's data object.DatagramFactoryException
- if some error occurs.public static void addDataEventPrototype(java.lang.String eventId, CloneableDataObject data) throws DatagramFactoryException
DataEvent
prototype to the environment.
The added prototype will have the the specified event id and data object.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
If a SemanticType
corresponding to the specified object does not exist,
it will be automatically created with a name data.getClass().getSimpleName()
.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.data
- the data object of the prototype.DatagramFactoryException
- if some error occurs.public static void addDataEventPrototype(java.lang.String eventId, DataEvent event) throws DatagramFactoryException
DataEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void addDeltaEventPrototype(java.lang.String eventId, java.lang.String semanticType) throws DatagramFactoryException
DeltaEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
A data object of the prototype will have the specified type.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
SemanticType
with the specified name does not exist.eventId
- the event id of the prototype.semanticType
- the name of SemanticType
of the prototype's data object.DatagramFactoryException
- if some error occurs.public static void addDeltaEventPrototype(java.lang.String eventId, CloneableDataObject data) throws DatagramFactoryException
DeltaEvent
prototype to the environment.
The added prototype will have the the specified event id and data object.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
If a SemanticType
corresponding to the specified object does not exist,
it will be automatically created with a name data.getClass().getSimpleName()
.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.data
- the data object of the prototype.DatagramFactoryException
- if some error occurs.public static void addDeltaEventPrototype(java.lang.String eventId, DeltaEvent event) throws DatagramFactoryException
DeltaEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void removeEventPrototype(java.lang.String eventId) throws DatagramFactoryException
EventDatagram
prototype having the specified event id.
If the prototype does not exist, the method will do nothing.
In the Runtime Context the prototype will be unregistered from a configuration persistence mechanism.eventId
- the event id of a prototype to be removed.DatagramFactoryException
- if some error occurs.public static void addOpaqueEventPrototype(java.lang.String eventId, java.lang.String semanticType) throws DatagramFactoryException
OpaqueEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
The data object of the prototype will have the specified type.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
SemanticType
with the specified name does not exist.eventId
- the event id of the prototype.semanticType
- the name of SemanticType
of the prototype's data object.DatagramFactoryException
- if some error occurs.public static void addOpaqueEventPrototype(java.lang.String eventId, CloneableDataObject data) throws DatagramFactoryException
OpaqueEvent
prototype to the environment.
The added prototype will have the the specified event id and data object.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
If a SemanticType
corresponding to the specified object does not exist,
it will be automatically created with a name data.getClass().getSimpleName()
.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.data
- the data object of the prototype.DatagramFactoryException
- if some error occurs.public static void addOpaqueEventPrototype(java.lang.String eventId, OpaqueEvent event) throws DatagramFactoryException
OpaqueEvent
prototype to the environment.
The added prototype will have the the specified event id.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void removeOpaqueEventPrototype(java.lang.String eventId) throws DatagramFactoryException
OpaqueEvent
prototype having the specified event id.
If the prototype does not exist, the method will do nothing.
In the Runtime Context the prototype will be unregistered from a configuration persistence mechanism.eventId
- the event id of a prototype to be removed.DatagramFactoryException
- if some error occurs.public static void addExceptionPrototype(java.lang.String model, java.lang.String eventId) throws DatagramFactoryException
ExceptionEventDatagram
prototype to the environment.
The added prototype will have the specified model (exact type of event datagram) and event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
model
- the model name of the prototype.eventId
- the event id of the prototype.DatagramFactoryException
- if some error occurs.public static void addExceptionPrototype(java.lang.String eventId, ExceptionEventDatagram event) throws DatagramFactoryException
ExceptionEventDatagram
prototype to the environment.
The added prototype will have the specified event id.
Supported event models are listed here.
The prototype will have an instance name which will be automatically generated using the eventId
parameter.
In the Runtime Context the prototype will be registered with a configuration persistence mechanism.
eventId
- the event id of the prototype.event
- the event prototype.DatagramFactoryException
- if some error occurs.public static void removeExceptionPrototype(java.lang.String eventId) throws DatagramFactoryException
ExceptionEventDatagram
prototype having the specified event id.
If the prototype does not exist, the method will do nothing.
In the Runtime Context the prototype will be unregistered from a configuration persistence mechanism.eventId
- the event id of a prototype to be removed.DatagramFactoryException
- if some error occurs.public static void removePrototype(java.lang.String eventId) throws DatagramFactoryException
eventId
- the event id of a prototype to be removed.DatagramFactoryException
- if some error occurs.public static void removePrototype(java.lang.String eventId, boolean force) throws DatagramFactoryException
eventId
- the event id of a prototype to be removed.force
- indicates if the prototype should be removed without checking for existence of active event flows.DatagramFactoryException
- if some error occurs.public static boolean existsPrototype(java.lang.String eventId)
eventId
- the event id of a prototype to be checked.true
if the event prototype exists, false
otherwise.public static java.lang.String createInstance(java.lang.String eventId)
eventId
- the specified event id.public static java.lang.String createEventId(java.lang.String instance)
instance
- the specified prototype instance.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.