public class CircuitImpl
extends java.lang.Object
implements com.vordel.config.Circuit
FilterContainerImpls, linked as they will be executed by the server.
In addition to a nominally connected network of nodes, a Circuit may also be configured with a specific filter designated its "Fault Handler", which will be passed the message during server processing if an exception is raised by the circuit while processing that message.
The underlying type of each FilterContainerImpl is dictated by the factory with which the Circuit is initially constructed. Generally, all FilterContainers in a Circuit will implement a specific interface required by the user of the Circuit. (For example, VordelSecure server will attach appropriate MessageProcessor objects for each filter.)
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected FilterContainerImpl |
start |
| Constructor and Description |
|---|
CircuitImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.vordel.config.ConfigContext factory, com.vordel.es.Entity circuitEntity)
Load the filter containers for each configured filter in this circuit
|
void |
flushCache()
Remove all filters from this circuit
|
java.lang.String |
getDescription() |
com.vordel.es.Entity |
getEntity()
Get the Entity that is used to configure this circuit
|
java.lang.String |
getErrorStatus() |
com.vordel.config.FilterContainer |
getFaultHandler()
Retrieve the fault handler for this circuit
|
java.util.Collection<FilterContainerImpl> |
getFilterContainers()
Get all the FilterContainers in this circuit
|
java.util.Map<com.vordel.es.ESPK,FilterContainerImpl> |
getFilterContainersMap()
Get all the filter containers in this circuit
|
java.util.Set<com.vordel.common.util.PropDef> |
getGeneratedProperties()
Gets the set of properties required by all of the filters in this circuit, including delegates.
|
java.lang.String |
getName()
Get the name of the circuit
|
java.util.Set<com.vordel.common.util.PropDef> |
getRequiredProperties() |
MessageProcessor |
getStartProcessor()
Locate the starting point for injecting messages into this circuit.
|
void |
setFaultHandler(FilterContainerImpl handler)
Set the fault handler for this circuit
|
protected FilterContainerImpl start
protected java.lang.String name
public java.lang.String getErrorStatus()
getErrorStatus in interface com.vordel.config.Circuitpublic com.vordel.config.FilterContainer getFaultHandler()
getFaultHandler in interface com.vordel.config.Circuitpublic void setFaultHandler(FilterContainerImpl handler)
handler - The filter container of the fault handlerpublic com.vordel.es.Entity getEntity()
public java.util.Set<com.vordel.common.util.PropDef> getRequiredProperties()
public java.util.Set<com.vordel.common.util.PropDef> getGeneratedProperties()
public void configure(com.vordel.config.ConfigContext factory,
com.vordel.es.Entity circuitEntity)
throws com.vordel.es.EntityStoreException
factory - The factory to use for creating filter containers for this circuitcircuitEntity - The entity representing this circuit in "store"com.vordel.es.EntityStoreExceptionpublic java.util.Map<com.vordel.es.ESPK,FilterContainerImpl> getFilterContainersMap()
public java.util.Collection<FilterContainerImpl> getFilterContainers()
public MessageProcessor getStartProcessor()
getStartProcessor in interface com.vordel.config.Circuitpublic java.lang.String getName()
getName in interface com.vordel.config.Circuitpublic void flushCache()
public java.lang.String getDescription()
This documentation and all its contents and graphics, copyright � 1999 - 2011 Vordel