public interface SolutionGateway extends SolutionDescriptor
| Modifier and Type | Method and Description |
|---|---|
<T extends com.ibm.ia.model.Entity> |
createRelationship(java.lang.Class<T> entity,
java.lang.String key)
Convenience method to create Relationships
|
<T extends com.ibm.ia.model.Entity> |
createRelationship(T t)
Convenience method to create Relationships
|
<T> T |
getConceptFactory(java.lang.Class<T> conceptFactoryClass)
Provides access to the package specific ConceptFactory of the Java Model,
which should be used to create Events and Concepts in that package
|
EventFactory |
getEventFactory()
Provides access to the EventFactory, which should be used to create Events, Concepts and Relationships
|
ModelSerializer |
getModelSerializer()
Provides access to the ModelSerializer, which should be used to serialize and parse Events and Entities
|
java.time.ZoneId |
getSolutionZoneId()
Provides Time Zone id of the solution.
|
void |
setGridTimeouts(CISGridTimeouts timeouts)
set various timeouts for the client connection to the grid
|
void |
setMaxSubmitDelay(int delay)
Overrides maximum delay that system can tolerate for event submission.
|
RoutingStatus |
submit(com.ibm.ia.model.Event event)
Submits event to the runtime.
|
RoutingStatus |
submit(com.ibm.ia.model.Event event,
java.time.LocalDateTime defaultTime)
Submits event to the runtime
|
RoutingStatus |
submit(com.ibm.ia.model.Event event,
java.lang.String defaultTime)
Submits event to the runtime
|
RoutingStatus |
submit(com.ibm.ia.model.Event event,
java.time.ZonedDateTime defaultTime)
Submits event to the runtime
|
getSolutionName, getSolutionVersion, getVersionEventFactory getEventFactory() throws SolutionChangedException
SolutionChangedException - indicates that solution has been changed on the server<T> T getConceptFactory(java.lang.Class<T> conceptFactoryClass)
throws SolutionChangedException
SolutionChangedException - indicates that solution has been changed on the serverconceptFactoryClass - ConceptFactory class for a specific Java Model packageModelSerializer getModelSerializer() throws SolutionChangedException
SolutionChangedException - indicates that solution has been changed on the server<T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(T t)
throws SolutionChangedException
SolutionChangedException - indicates that solution has been changed on the servert - Entity instance for this relationship<T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(java.lang.Class<T> entity,
java.lang.String key)
throws SolutionChangedException
SolutionChangedException - indicates that solution has been changed on the serverentity - entity class type for this relationshipkey - entity id for this relationshipRoutingStatus submit(com.ibm.ia.model.Event event) throws GatewayException, RoutingException
GatewayException - EventCapacityExceededException if event submit rate is over maximum submit delay. See setMaxSubmitDelay(int delay) for details.RoutingExceptionevent - Generic event or event instanceRoutingStatus submit(com.ibm.ia.model.Event event, java.time.ZonedDateTime defaultTime) throws GatewayException, RoutingException
GatewayException - EventCapacityExceededException if event submit rate is over maximum submit delay. See setMaxSubmitDelay(int delay) for details.RoutingExceptionevent - Generic event or event instancedefaultTime - ZonedDateTime time (with or without Time Zone) which is used to set event's time when timestamp value is not availableRoutingStatus submit(com.ibm.ia.model.Event event, java.time.LocalDateTime defaultTime) throws GatewayException, RoutingException
GatewayException - EventCapacityExceededException if event submit rate is over maximum submit delay. See setMaxSubmitDelay(int delay) for details.RoutingExceptionevent - Generic event or event instancedefaultTime - LocalDateTime time which is used to set event's time when timestamp value is not availableRoutingStatus submit(com.ibm.ia.model.Event event, java.lang.String defaultTime) throws GatewayException, RoutingException
GatewayException - EventCapacityExceededException if event submit rate is over maximum submit delay. See setMaxSubmitDelay(int delay) for details.RoutingExceptionevent - Generic event or event instancedefaultTime - String representation of ZonedDateTime or LocalDateTime time which is used to set event's time when timestamp value is not availablejava.time.ZoneId getSolutionZoneId()
void setMaxSubmitDelay(int delay)
submit(Event event).
Gateway will resume regular event submission speed once servers get below event load threshold.delay - delay in milliseconds, up to Integer.MAX_VALUE; 0 value means no delays can be toleratedvoid setGridTimeouts(CISGridTimeouts timeouts)
timeouts - CISGridTimeout structure containing various timeouts for the client connection© Copyright IBM 2017