connect.facet
Class FacetComponentTemplate
java.lang.Object
|
+--connect.facet.FacetComponentTemplate
- All Implemented Interfaces:
- Component
- public abstract class FacetComponentTemplate
- extends Object
- implements Component
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
incoming
private FacetComponentTemplate.ConnectionListener incoming
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
DEBUG
private static boolean DEBUG
connection
private connect.CreatesConnection connection
representative
private final connect.ComponentEmissary representative
numOfPoints
private int numOfPoints
FacetComponentTemplate
public FacetComponentTemplate()
getSourceType
public abstract int getSourceType()
getNextConnection
public abstract int getNextConnection()
getConnection
public connect.CreatesConnection getConnection()
- Description copied from interface:
Component
- return the CreatesConnection that would allow another component
to connect. Implementations should be aware that this object
may be passed across a stream thereby breaking any JVM specific
CreatesConnection. More documentation on this can be seen in
the CreatesConnection class.
- Specified by:
getConnection in interface Component
getComponentEmissary
public connect.ComponentEmissary getComponentEmissary()
startAcceptingThread
private void startAcceptingThread()
processRelayPoint
protected void processRelayPoint(connect.ChannelBundle bundle)
startRelayThread
private void startRelayThread(connect.ChannelBundle bundle)
getMaxPoints
protected int getMaxPoints()
startProcessingThread
protected void startProcessingThread(connect.ComponentEmissary ce,
connect.ChannelBundle b)
connect
public void connect(connect.CreatesConnection cc)
- Description copied from interface:
Component
- connect to the component specified by the CreatesConnection
- Specified by:
connect in interface Component
spawnRelayPoint
public void spawnRelayPoint(int relayPort)
accept
protected abstract boolean accept(Class requestingType)
allowMethod
protected abstract boolean allowMethod(util.MethodRequest request)
processRequestingConnection
protected abstract void processRequestingConnection(connect.ComponentEmissary requesting,
connect.ChannelBundle incomingConnection)
processAcceptedConnection
protected abstract void processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.