public class AuxAgent extends java.lang.Object implements IBufferReceiver, IBufferSender
| Constructor and Description |
|---|
AuxAgent()
Instantiates Aux agent
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Auxiliary Protocol Agent
|
IFragmentProcessor |
getFragmentProcessor()
Retrieves the Fragment Processor
|
LocalExtensionAgent |
getLocalExtensionAgent()
Retrieves instance of LocalExtensionAgent.
|
boolean |
onMessageBufferReceived(byte[] buffer)
Gets automatically invoked when Message is received from remote system.
|
void |
sendData(ISegmentSet objSegmentSetToSend)
Gets automatically invoked when Message is to be sent to remote system.
|
void |
setDataProcessor(IDataProcessor objIDataProcessor)
Sets IDataProcessor on MessageAgenet.
|
void |
setExceptionReceiver(IExceptionReceiver objIExceptionReceiver)
Sets the IExceptionReceiver
|
void |
setFragmentProcessor(IFragmentProcessor objIFragmentProcessor)
Sets the Fragment Processor
|
void |
setLocalExtensionAgent(LocalExtensionAgent objAgent)
Sets LocalExtensionAgent to process locally extended segments
|
void |
setMLLPProcessor(IMLLP objIMLLP)
Sets the MLLP Processor.
|
void |
setNetworkAgent(INetworkAgent objINetworkAgent)
Sets NetworkAgent on INetworkAgent.
|
void |
setWriteLength(int iWriteLength)
Sets max length limit of writing.
|
public void setLocalExtensionAgent(LocalExtensionAgent objAgent)
setLocalExtensionAgent in interface IBufferReceiverobjAgent - instance of LocalExtensionAgentpublic LocalExtensionAgent getLocalExtensionAgent()
getLocalExtensionAgent in interface IBufferReceiverpublic void setExceptionReceiver(IExceptionReceiver objIExceptionReceiver)
objIExceptionReceiver - the objIExceptionReceiver to setpublic IFragmentProcessor getFragmentProcessor()
public void setFragmentProcessor(IFragmentProcessor objIFragmentProcessor)
objIFragmentProcessor - the objIFragmentProcessor to setpublic void setMLLPProcessor(IMLLP objIMLLP)
objIMLLP - the MLLP processor to set.public void setNetworkAgent(INetworkAgent objINetworkAgent)
objINetworkAgent-object - of INetworkAgentpublic void setWriteLength(int iWriteLength)
iWriteLength - value of Writing max lengthpublic void setDataProcessor(IDataProcessor objIDataProcessor)
objIDataProcessor - - object of IDataProcessorpublic boolean onMessageBufferReceived(byte[] buffer)
throws java.io.IOException
onMessageBufferReceived in interface IBufferReceiverbuffer - message stream received in form of byte arrayjava.io.IOException - Signals that an IO Exception has occurred.public void sendData(ISegmentSet objSegmentSetToSend) throws java.io.IOException
sendData in interface IBufferSendermessageToSend - Specified messagejava.io.IOException - Thrown when IO operation fails.SerializeException - Thrown when serialize operation fails.public void close()