|
||||||||||
| 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 ConduityourId - The ConduitID.
SystemExceptionConduitIDpublic ConduitID getId()
getId in interface Conduit
public Injector getInjector(Conduit.InjectorType theType)
throws SystemException
getInjector in interface ConduittheType - 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 ConduittheType - 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 ConduittheInjector - The Injector object to dispose.
SystemException
public void registerPullDrain(PullDrainContainer theDrain)
throws SystemException
registerPullDrain in interface ConduittheDrain - The drain to register.
SystemExceptionPullDrainContainer
public void deRegisterPullDrain(PullDrainContainer theDrain)
throws SystemException
deRegisterPullDrain in interface ConduittheDrain - The drain to deregister.
SystemExceptionPullDrainContainer
public void registerPushDrain(PushDrain theDrain)
throws SystemException
registerPushDrain in interface ConduittheDrain - The drain to register.
SystemExceptionPushDrain
public void deRegisterPushDrain(PushDrain theDrain)
throws SystemException
deRegisterPushDrain in interface ConduittheDrain - The drain to deregister.
SystemExceptionPushDrain
public java.util.HashSet<PullDrainContainer> getPullDrains()
throws SystemException
getPullDrains in interface InjectionInterfaceSystemExceptionPullDrainContainer,
HashSet
public java.util.HashSet<PushDrain> getPushDrains()
throws SystemException
getPushDrains in interface InjectionInterfaceSystemExceptionPushDrain,
HashSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||