|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.io.conduits.basic.BasicConduit
public class BasicConduit
Basic implementation of a conduit.
NOTES
- Using or deregistering an already deregistered Injector will not cause any errors.
Drains are registered and deregistered. Push drains will call the drain object from a system owned Thread. Pull drains are polled from outside the system Threads
Version History
EPG - Adapted from autohit - 29 JUN 05
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface things.thinger.io.conduits.Conduit |
---|
Conduit.InjectorType |
Field Summary |
---|
Fields inherited from interface things.thinger.io.conduits.Conduit |
---|
NOTHING |
Constructor Summary | |
---|---|
BasicConduit()
|
Method Summary | |
---|---|
void |
deRegisterPullDrain(PullDrainContainer theDrain)
Deregister a PullDrainContainer instance with the Conduit. |
void |
deRegisterPushDrain(PushDrain theDrain)
Deregister a PushDrain instance with the Conduit. |
void |
disposeInjector(Injector theInjector)
Explicitly dispose of an Injector. |
ConduitID |
getId()
Get the id. |
Injector |
getInjector(Conduit.InjectorType theType)
This will get an injector to the conduit. |
Injector |
getInjector(Conduit.InjectorType theType,
java.lang.String name)
This will get an injector to the conduit, named. |
java.util.HashSet<PullDrainContainer> |
getPullDrains()
Get the Pull Drains (in their containers). |
java.util.HashSet<PushDrain> |
getPushDrains()
Get the Push Drains (in their containers). |
void |
init(ConduitID yourId)
Initialize the Conduit. |
void |
registerPullDrain(PullDrainContainer theDrain)
Register a PullDrainContainer instance with the Conduit. |
void |
registerPushDrain(PushDrain theDrain)
Register a PushDrain instance with the Conduit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicConduit()
Method Detail |
---|
public void init(ConduitID yourId) throws SystemException
init
in interface Conduit
yourId
- The ConduitID.
SystemException
ConduitID
public ConduitID getId()
getId
in interface Conduit
public Injector getInjector(Conduit.InjectorType theType) throws SystemException
getInjector
in interface Conduit
theType
- The type of injector to get. If the underlying implementation does not support that type, it should throw a ThingsException.
SystemException
public Injector getInjector(Conduit.InjectorType theType, java.lang.String name) throws SystemException
getInjector
in interface Conduit
theType
- The type of injector to get. If the underlying implementation does not support that type, it should throw a ThingsException.name
- the name of the Injector
SystemException
public void disposeInjector(Injector theInjector) throws SystemException
disposeInjector
in interface Conduit
theInjector
- The Injector object to dispose.
SystemException
public void registerPullDrain(PullDrainContainer theDrain) throws SystemException
registerPullDrain
in interface Conduit
theDrain
- The drain to register.
SystemException
PullDrainContainer
public void deRegisterPullDrain(PullDrainContainer theDrain) throws SystemException
deRegisterPullDrain
in interface Conduit
theDrain
- The drain to deregister.
SystemException
PullDrainContainer
public void registerPushDrain(PushDrain theDrain) throws SystemException
registerPushDrain
in interface Conduit
theDrain
- The drain to register.
SystemException
PushDrain
public void deRegisterPushDrain(PushDrain theDrain) throws SystemException
deRegisterPushDrain
in interface Conduit
theDrain
- The drain to deregister.
SystemException
PushDrain
public java.util.HashSet<PullDrainContainer> getPullDrains() throws SystemException
getPullDrains
in interface InjectionInterface
SystemException
PullDrainContainer
,
HashSet
public java.util.HashSet<PushDrain> getPushDrains() throws SystemException
getPushDrains
in interface InjectionInterface
SystemException
PushDrain
,
HashSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |