|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.providers.udp.UdpConnector
UdpConnector
can send and receive Mule events as Datagram packets.
Field Summary | |
protected boolean |
broadcast
|
static int |
DEFAULT_BUFFER_SIZE
|
static int |
DEFAULT_SOCKET_TIMEOUT
|
protected GenericKeyedObjectPool |
dispatcherSocketsPool
|
static String |
KEEP_SEND_SOCKET_OPEN_PROPERTY
|
protected boolean |
keepSendSocketOpen
|
protected int |
receiveBufferSize
|
protected int |
receiveTimeout
|
protected int |
sendBufferSize
|
protected int |
sendTimeout
|
Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
Constructor Summary | |
UdpConnector()
|
Method Summary | |
protected void |
doConnect()
Template method where any connections should be made for the connector |
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected void |
doInitialise()
|
protected void |
doStart()
Template method to perform any work when starting the connectoe |
protected void |
doStop()
Template method to perform any work when stopping the connectoe |
int |
getBufferSize()
Deprecated. Should use getSendBufferSize() or getReceiveBufferSize() |
String |
getProtocol()
|
int |
getReceiveBufferSize()
|
protected Object |
getReceiverKey(UMOComponent component,
UMOEndpoint endpoint)
The method determines the key used to store the receiver against. |
int |
getReceiveTimeout()
|
int |
getSendBufferSize()
|
int |
getSendTimeout()
|
boolean |
isBroadcast()
|
boolean |
isKeepSendSocketOpen()
|
void |
setBroadcast(boolean broadcast)
|
void |
setBufferSize(int bufferSize)
Deprecated. Should use setSendBufferSize(int) or setReceiveBufferSize(int) |
void |
setKeepSendSocketOpen(boolean keepSendSocketOpen)
|
void |
setReceiveBufferSize(int receiveBufferSize)
|
void |
setReceiveTimeout(int timeout)
|
void |
setSendBufferSize(int sendBufferSize)
|
void |
setSendTimeout(int timeout)
|
void |
setTimeout(int timeout)
Deprecated. The time out should be set explicitly for each |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_SOCKET_TIMEOUT
public static final int DEFAULT_BUFFER_SIZE
public static final String KEEP_SEND_SOCKET_OPEN_PROPERTY
protected int sendTimeout
protected int receiveTimeout
protected int sendBufferSize
protected int receiveBufferSize
protected boolean keepSendSocketOpen
protected boolean broadcast
protected GenericKeyedObjectPool dispatcherSocketsPool
Constructor Detail |
public UdpConnector()
Method Detail |
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doStart() throws UMOException
AbstractConnector
doStart
in class AbstractConnector
UMOException
- if the method failsprotected void doStop() throws UMOException
AbstractConnector
doStop
in class AbstractConnector
UMOException
- if the method failspublic String getProtocol()
public void setTimeout(int timeout)
public int getSendTimeout()
public void setSendTimeout(int timeout)
public int getReceiveTimeout()
public void setReceiveTimeout(int timeout)
public int getBufferSize()
getSendBufferSize()
or getReceiveBufferSize()
public void setBufferSize(int bufferSize)
setSendBufferSize(int)
or setReceiveBufferSize(int)
bufferSize
- public int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
public int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
public boolean isBroadcast()
public void setBroadcast(boolean broadcast)
public boolean isKeepSendSocketOpen()
public void setKeepSendSocketOpen(boolean keepSendSocketOpen)
protected Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint)
AbstractConnector
getReceiverKey
in class AbstractConnector
component
- the component for which the endpoint is being registeredendpoint
- the endpoint being registered for the component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |