|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vordel.circuit.Circuit
public class Circuit
Consists of a network of FilterContainer
s, 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 FilterContainer
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.)
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected FilterContainer |
start
|
Constructor Summary | |
---|---|
Circuit()
|
Method Summary | |
---|---|
void |
configure(CircuitCache factory,
Entity circuitEntity)
Load the filter containers for each configured filter in this circuit |
void |
flushCache()
Remove all filters from this circuit |
Entity |
getEntity()
Get the Entity that is used to configure this circuit |
FilterContainer |
getFaultHandler()
Retrieve the fault handler for this circuit |
java.util.Collection<FilterContainer> |
getFilterContainers()
Get all the FilterContainers in this circuit |
java.util.Map<ESPK,FilterContainer> |
getFilterContainersMap()
Get all the filter containers in this circuit |
java.lang.String |
getName()
Get the name of the circuit |
FilterContainer |
getStartFilter()
Locate the starting point for injecting messages into this circuit. |
void |
setFaultHandler(FilterContainer handler)
Set the fault handler for this circuit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FilterContainer start
protected java.lang.String name
Constructor Detail |
---|
public Circuit()
Method Detail |
---|
public FilterContainer getFaultHandler()
public void setFaultHandler(FilterContainer handler)
handler
- The filter container of the fault handlerpublic Entity getEntity()
public void configure(CircuitCache factory, Entity circuitEntity) throws EntityStoreException
factory
- The factory to use for creating filter containers for this circuitcircuitEntity
- The entity representing this circuit in "store"
EntityStoreException
public java.util.Map<ESPK,FilterContainer> getFilterContainersMap()
public java.util.Collection<FilterContainer> getFilterContainers()
public FilterContainer getStartFilter()
public java.lang.String getName()
public void flushCache()
|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |