|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface Connector
Defines common interface to input and output Connectors.
Inter Module Connection is made of InputConnector and OutputConnector and is essentially a cyclic queue of
references to Buffer Objects.
The queue is constructed at the Connectors connectTo() method, so the suggested size should be
set before that.
Note that these connectors are almost symetrical so they can support both
push and pull connection.
In addition the two threads sync. mechanism is also supported by this suggested API.
Module
,
InputConnector
,
OutputConnector
,
Format
字段摘要 | |
---|---|
static int |
ProtocolPush
constant to indicate that this connector runs on "Push" protocol. |
static int |
ProtocolSafe
constant to indicate that this connector runs on "Safe" protocol. |
方法摘要 | |
---|---|
java.lang.Object |
getCircularBuffer()
returns the circular buffer Object which is locked (by wait()/notify() )during safe data transfer. |
Format |
getFormat()
The selected format. |
Module |
getModule()
Returns the Module which registered this Connector. |
java.lang.String |
getName()
returns the name of this Connector in the owning Module |
int |
getProtocol()
returns the data transfer protocol used by this connector. |
int |
getSize()
gets the minimum number of buffer objects this Connector should create. |
void |
reset()
restores this Connector to its initial state: removes all the buffer locks. |
void |
setCircularBuffer(java.lang.Object circularBuffer)
Sets the circular buffer object of the connection. |
void |
setFormat(Format format)
Selects a format for this Connector (the default is null). |
void |
setModule(Module module)
sets the Module which registered this Connector. |
void |
setName(java.lang.String name)
sets the name of this Connector. |
void |
setProtocol(int protocol)
determines the data transfer protocol used by this connector. |
void |
setSize(int numOfBufferObjects)
sets the minimum number of buffer objects this Connector should create. |
字段详细信息 |
---|
static final int ProtocolPush
static final int ProtocolSafe
方法详细信息 |
---|
void setFormat(Format format)
Format getFormat()
void setSize(int numOfBufferObjects)
int getSize()
void reset()
java.lang.String getName()
void setName(java.lang.String name)
void setProtocol(int protocol)
protocol
- either ProtocolPush, ProtocolSafeint getProtocol()
java.lang.Object getCircularBuffer()
void setCircularBuffer(java.lang.Object circularBuffer)
circularBuffer
- the circular buffer used by this Connectionvoid setModule(Module module)
Module getModule()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |