Class UDPWorkflowEventSource
- java.lang.Object
-
- de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
-
- de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
-
- de.uplanet.lucy.server.workflow.eventsource.UDPWorkflowEventSource
-
- All Implemented Interfaces:
IActivatableWorkflowObject
,de.uplanet.lucy.server.workflow.IImpersonateUser
,ILogLevelAware
,INamedWorkflowObject
,INeedWorkflow
,IRunnableWorkflowObject
,IStartableWorkflowObject
,ISupportAfterStopEvent
,ISupportBeforeStartEvent
,ISupportGlobalSharedState
,IWorkflowEventSource
,IWorkflowObject
,Serializable
public final class UDPWorkflowEventSource extends AbstractSingleThreadedWorkflowEventSource implements ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_DATAGRAM_SIZE
-
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description UDPWorkflowEventSource(String p_strGuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getListenAddress()
int
getListenPort()
int
getMaxDatagramSize()
String
getProtocolFamily()
Get the protocol family.int
getSoReceiveBuffer()
int
getSoSendBuffer()
boolean
isGlobalSharedState()
This property determines if a global shared state should be used for all events created by this event source.boolean
isIpMulticastLoop()
boolean
isSendAfterStopEvent()
This property determines if an after-stop event should be sent.boolean
isSendBeforeStartEvent()
This property determines if an before-start event should be sent.boolean
isSoBroadcast()
boolean
isSoReuseAddress()
void
setGlobalSharedState(boolean p_bGlobalSharedState)
This property determines if a global shared state should be used for all events created by this event source.void
setIpMulticastLoop(boolean p_bIP_MULTICAST_LOOP)
void
setListenAddress(String p_strListenAddress)
void
setListenPort(int p_iListenPort)
void
setMaxDatagramSize(int p_iMaxDatagramSize)
void
setProtocolFamily(String p_strProtocolFamily)
Set the protocol family.void
setSendAfterStopEvent(boolean p_bSendAfterStopEvent)
This property determines if an after-stop event should be sent.void
setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent)
This property determines if an before-start event should be sent.void
setSoBroadcast(boolean p_iSO_BROADCAST)
void
setSoReceiveBuffer(int p_iSO_RCVBUF)
void
setSoReuseAddress(boolean p_bSO_REUSEADDR)
void
setSoSendBuffer(int p_iSO_SNDBUF)
-
Methods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
getDatabaseConnectionFactory, getStartDelay, getStopWaitTimeout, isLogVerbose, isRunning, setDatabaseConnectionFactory, setLogVerbose, setStartDelay, setStopWaitTimeout, shouldRun, start, stop
-
Methods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
getGuid, getImpersonateUserGuid, getName, getWorkflow, hasImpersonateUserGuid, isActive, isRunWithLocalSystemPrivileges, setActive, setImpersonateUserGuid, setName, setRunWithLocalSystemPrivileges, setWorkflow, toString
-
-
-
-
Field Detail
-
DEFAULT_MAX_DATAGRAM_SIZE
public static final int DEFAULT_MAX_DATAGRAM_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UDPWorkflowEventSource
public UDPWorkflowEventSource(String p_strGuid)
-
-
Method Detail
-
isSendBeforeStartEvent
public boolean isSendBeforeStartEvent()
Description copied from interface:ISupportBeforeStartEvent
This property determines if an before-start event should be sent.- Specified by:
isSendBeforeStartEvent
in interfaceISupportBeforeStartEvent
- Returns:
true
if an event should be sent before the workflow object's activity is about to being started, orfalse
otherwise.
-
setSendBeforeStartEvent
public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent)
Description copied from interface:ISupportBeforeStartEvent
This property determines if an before-start event should be sent.- Specified by:
setSendBeforeStartEvent
in interfaceISupportBeforeStartEvent
- Parameters:
p_bSendBeforeStartEvent
-true
if an event should be sent before the workflow object's activity is about to being started, orfalse
otherwise.
-
isSendAfterStopEvent
public boolean isSendAfterStopEvent()
Description copied from interface:ISupportAfterStopEvent
This property determines if an after-stop event should be sent.- Specified by:
isSendAfterStopEvent
in interfaceISupportAfterStopEvent
- Returns:
true
if an event should be sent after the workflow object's activity has been stopped, orfalse
otherwise.
-
setSendAfterStopEvent
public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent)
Description copied from interface:ISupportAfterStopEvent
This property determines if an after-stop event should be sent.- Specified by:
setSendAfterStopEvent
in interfaceISupportAfterStopEvent
- Parameters:
p_bSendAfterStopEvent
-true
if an event should be sent after the workflow object's activity has been stopped, orfalse
otherwise.
-
getProtocolFamily
public String getProtocolFamily()
Get the protocol family.- Returns:
- Either
null
, orINET
, orINET6
.
-
setProtocolFamily
public void setProtocolFamily(String p_strProtocolFamily)
Set the protocol family. Valid values arenull
for any protocol version,INET
for Internet Protocol Version 4 (IPv4), orINET6
for Internet Protocol Version 6 (IPv6).
- Parameters:
p_strProtocolFamily
- Eithernull
, orINET
, orINET6
.
-
getListenAddress
public String getListenAddress()
-
setListenAddress
public void setListenAddress(String p_strListenAddress)
-
getListenPort
public int getListenPort()
-
setListenPort
public void setListenPort(int p_iListenPort)
-
getMaxDatagramSize
public int getMaxDatagramSize()
-
setMaxDatagramSize
public void setMaxDatagramSize(int p_iMaxDatagramSize)
-
getSoReceiveBuffer
public int getSoReceiveBuffer()
-
setSoReceiveBuffer
public void setSoReceiveBuffer(int p_iSO_RCVBUF)
-
getSoSendBuffer
public int getSoSendBuffer()
-
setSoSendBuffer
public void setSoSendBuffer(int p_iSO_SNDBUF)
-
isSoBroadcast
public boolean isSoBroadcast()
-
setSoBroadcast
public void setSoBroadcast(boolean p_iSO_BROADCAST)
-
isSoReuseAddress
public boolean isSoReuseAddress()
-
setSoReuseAddress
public void setSoReuseAddress(boolean p_bSO_REUSEADDR)
-
isIpMulticastLoop
public boolean isIpMulticastLoop()
-
setIpMulticastLoop
public void setIpMulticastLoop(boolean p_bIP_MULTICAST_LOOP)
-
isGlobalSharedState
public boolean isGlobalSharedState()
Description copied from interface:ISupportGlobalSharedState
This property determines if a global shared state should be used for all events created by this event source.- Specified by:
isGlobalSharedState
in interfaceISupportGlobalSharedState
- Returns:
true
if a global shared state should be used, orfalse
otherwise.
-
setGlobalSharedState
public void setGlobalSharedState(boolean p_bGlobalSharedState)
Description copied from interface:ISupportGlobalSharedState
This property determines if a global shared state should be used for all events created by this event source.- Specified by:
setGlobalSharedState
in interfaceISupportGlobalSharedState
- Parameters:
p_bGlobalSharedState
-true
if a global shared state should be used, orfalse
otherwise.
-
-