|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.wsinfra.WsProcessor
cgl.narada.wsinfra.wsr.impl.WsrSourceNode
public class WsrSourceNode
This class implements the functionality of a WSR Source.
| Field Summary | |
|---|---|
static int |
counter
|
| Constructor Summary | |
|---|---|
WsrSourceNode(String configInfo)
|
|
| Method Summary | |
|---|---|
void |
createAndEnroutePollRequest(ToDocument toDocument)
Creates PollRequestDocument from specified parameters and enroute to the network |
WsrGroupInfoImpl |
createGroupInfo(String groupId,
EnvelopeDocument envelopeDocument)
create GroupInfo from Property file |
WsrStorageWidgetImpl |
createMessageInfo(String groupId,
long sequenceNumber,
EnvelopeDocument envelopeDocument)
Create MessageInfo from Property file |
EndpointReferenceType |
getEndpointReference()
Retrieves the endpoint reference associated with this node |
WsMessageFlow |
getMessageFlow()
Gets the message flow which the processor should use. |
boolean |
processExchange(EnvelopeDocument envelopeDocument,
int direction)
Process the exchange. |
boolean |
processExistingGroup(String groupId,
EnvelopeDocument envelopeDocument)
process Existing Group Request |
void |
processMessageFromApplication(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
Process exchange received from application, and send it across reliability |
boolean |
processNewGroup(String groupId,
String destination,
EnvelopeDocument envelopeDocument)
Process New Group Request |
boolean |
processNonSequenceReply(ResponseDocument responseDocument)
process Non Sequence Reply |
void |
processResponse(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
Process group acknowledgements and faults received over the wire from the sink |
boolean |
processSequenceReply(ResponseDocument responseDocument)
process Sequence Reply |
void |
processTermination(ResponseDocument responseDocument)
process Sequence Termination |
void |
removeHeadersFromEnvelopeDocument(EnvelopeDocument envelopeDocument)
Remove extra headers from EnvelopeDocument |
void |
setEndpointReference(EndpointReferenceType endpointReference)
Set the endpoint reference associated with this node |
void |
setMessageFlow(WsMessageFlow wsMessageFlow)
Sets the message flow which the processor should use |
| Methods inherited from class cgl.narada.wsinfra.WsProcessor |
|---|
enrouteToApplication, enrouteToNetwork, enrouteToNetwork, isFault, manageFaultException, processExchange, processExchange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int counter
| Constructor Detail |
|---|
public WsrSourceNode(String configInfo)
throws DeploymentException
DeploymentException| Method Detail |
|---|
public void setMessageFlow(WsMessageFlow wsMessageFlow)
throws DeploymentException
setMessageFlow in class WsProcessorDeploymentExceptionpublic WsMessageFlow getMessageFlow()
getMessageFlow in class WsProcessorpublic EndpointReferenceType getEndpointReference()
getEndpointReference in interface WsrSourcepublic void setEndpointReference(EndpointReferenceType endpointReference)
setEndpointReference in interface WsrSource
public boolean processExchange(EnvelopeDocument envelopeDocument,
int direction)
throws UnknownExchangeException,
IncorrectExchangeException,
ProcessingException,
MessageFlowException
processExchange in interface WsrSourceprocessExchange in class WsProcessorUnknownExchangeException
IncorrectExchangeException
ProcessingException
MessageFlowException
public void processMessageFromApplication(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
throws WsFaultException,
MessageFlowException,
WsrStorageException
processMessageFromApplication in interface WsrSourceWsFaultException
MessageFlowException
WsrStorageExceptionpublic void removeHeadersFromEnvelopeDocument(EnvelopeDocument envelopeDocument)
public void createAndEnroutePollRequest(ToDocument toDocument)
throws WsrStorageException,
MessageFlowException
WsrStorageException
MessageFlowException
public boolean processNewGroup(String groupId,
String destination,
EnvelopeDocument envelopeDocument)
throws WsrStorageException,
WsFaultException
WsrStorageException
WsFaultException
public boolean processExistingGroup(String groupId,
EnvelopeDocument envelopeDocument)
throws WsrStorageException,
WsFaultException
WsrStorageException
WsFaultException
public WsrGroupInfoImpl createGroupInfo(String groupId,
EnvelopeDocument envelopeDocument)
throws WsFaultException
WsFaultException
public WsrStorageWidgetImpl createMessageInfo(String groupId,
long sequenceNumber,
EnvelopeDocument envelopeDocument)
throws WsFaultException
WsFaultException
public void processResponse(EnvelopeDocument envelopeDocument,
AddressingHeaders addressingHeaders)
throws WsFaultException,
MessageFlowException,
WsrStorageException
processResponse in interface WsrSourceWsFaultException
MessageFlowException
WsrStorageException
public boolean processNonSequenceReply(ResponseDocument responseDocument)
throws WsrStorageException,
MessageFlowException
WsrStorageException
MessageFlowException
public boolean processSequenceReply(ResponseDocument responseDocument)
throws WsrStorageException,
MessageFlowException
WsrStorageException
MessageFlowException
public void processTermination(ResponseDocument responseDocument)
throws WsrStorageException
WsrStorageException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||