public interface IMessageProcessor
Modifier and Type | Method and Description |
---|---|
void |
abort()
purges all queues and maps
|
void |
clearTransactionThreadId(long ThreadId) |
void |
forceNewDataPusherThread()
Use with caution.
|
ConfigLoader |
getConfig() |
String |
getHostName()
returns the lowercase value of the current hostname
|
Set<String> |
getIgnoreList()
list of soap actions that should be ignored by agents
|
String |
getLastErrorMessage() |
int |
getPolicyCache()
gets the size of the current policy cache
|
TransactionalWebServicePolicy |
getPolicyIfAvailable(String url)
Attempts to find and return a service policy from the local cache.
|
int |
getThreadMapSize() |
long |
getTotalmessagesprocessed() |
String |
getTransactionThreadId(Long ThreadId)
Dependency Detection This should only be called in the context of a
client handler seeing outbound transactions
|
Map<String,String> |
getURLaddressMap() |
ArrayList<String> |
getUserIdentities(TransactionalWebServicePolicy p,
MessageCorrelator mc)
turns all user identities as defined by the service policy, plus ip
addresses
|
ArrayList<String> |
getUsersfromXpath(ArrayOfXPathExpressionType xpaths,
String message)
returns user identities via xpath
|
void |
incMessagesProcessed(int size) |
int |
internalMessageMapSize()
gets the size of the current message map
|
boolean |
isDependencyInjectionEnabled() |
int |
outboundQueueSize()
gets the size of the current queue
|
void |
processMessageInput(String XMLrequest,
int requestSize,
String url,
String soapAction,
String HttpUsername,
String HashCode,
HashMap headers,
String ipaddress,
String agentclassname,
String relatedtransaction,
String threadid)
caches stored data and adds it to the message map.
|
void |
processMessageOutput(String HashCode,
String responseXML,
int responseSize,
boolean isFault,
Long dod,
HashMap headers)
pairs up a response with a request and adds it to the queue for
transmission
|
void |
processMessageOutput(String HashCode,
String responseXML,
int responseSize,
boolean isFault,
Long dod,
HashMap headers,
String relatedTransaction)
wrapper to the main function This is normally only called when a CLIENT
receives a response from a service
|
void |
processPreppedMessage(AddDataRequestMsg request)
this assumes that the request is already prepopulated with all required
information according the policy for this item typically used for the
offline persistent storage agent.
|
void |
purgeMessageMap()
purges the map
|
void |
purgeOutboundQueue()
purges the queue
|
void |
purgePolicyCache()
purges the policy cache
|
void |
purgeThreadMap() |
void |
removeDeadMessage()
Any message in the Message Map older than the dead message interval will
be removed from the Message Map, flagged as faulted and added to the
outbound queue
|
void |
removeFromQueue(String id)
Use when for some reason, a transaction cannot be monitored NOTE, removes
from the Message Map, not the outbound queue
|
void |
removeFromQueue(UUID id)
Use when for some reason, a transaction cannot be monitored NOTE, removes
from the Message Map, not the outbound queue
|
void |
setLastErrorMessage(String all_PCS_endpoints_are_either_unreachable_) |
void |
setRunning(boolean b) |
void |
setTransactionThreadId(Long ThreadId,
String id)
* Dependency Detection Only Set on an inbound service request
|
boolean |
shouldAgentRecordRequestContent(String requesturl)
performance optimzation to be used by agents that determines if the
request body should be it uses a lazy algorithm for resolving request
urls to modified urls and will always resort to being on the safe side
|
boolean |
shouldAgentRecordResponseContent(String requesturl)
performance optimization to be used by agents
|
void |
terminate() |
boolean isDependencyInjectionEnabled()
void abort()
void clearTransactionThreadId(long ThreadId)
void forceNewDataPusherThread()
ConfigLoader getConfig()
String getHostName()
String getLastErrorMessage()
int getPolicyCache()
TransactionalWebServicePolicy getPolicyIfAvailable(String url)
url
- long getTotalmessagesprocessed()
String getTransactionThreadId(Long ThreadId)
ArrayList<String> getUserIdentities(TransactionalWebServicePolicy p, MessageCorrelator mc)
p
- policymc,
- current mesage correlationArrayList<String> getUsersfromXpath(ArrayOfXPathExpressionType xpaths, String message)
xpaths
- message
- int internalMessageMapSize()
int outboundQueueSize()
void processMessageInput(String XMLrequest, int requestSize, String url, String soapAction, String HttpUsername, String HashCode, HashMap headers, String ipaddress, String agentclassname, String relatedtransaction, String threadid)
XMLrequest
- - may be null, the request contentrequestSize
- - size of the payloadurl
- - the requested URL that the client asked for
http://localhost/pathsoapAction
- - SOAPAction or HTTP MethodHttpUsername
- the username or DN of the requestorHashCode
- - very important, a unique identifier for this message.
Use UUID.randomheaders
- - Transport layer headers of the requestipaddress
- - IP of the requestoragentclassname
- - the class of the agent that recorded the message.
MUST CONTAIN "client" IF THIS IS A CLIENT or from a proxy TRANSACTION!!
this is necessary for proper URL resolutionrelatedtransaction
- - if this transaction was also recorded
elsewhere, pull this data from the http headersthreadid
- - if this transaction was also recorded elsewhere, pull
this data from the http headers. or generate a new one if it was not
present using UUID.randomvoid processMessageOutput(String HashCode, String responseXML, int responseSize, boolean isFault, Long dod, HashMap headers, String relatedTransaction)
HashCode
- responseXML
- responseSize
- isFault
- dod
- headers
- relatedTransaction
- void processMessageOutput(String HashCode, String responseXML, int responseSize, boolean isFault, Long dod, HashMap headers)
HashCode
- the UUID of the message that links this response to the
requestresponseXML
- response payloadresponseSize
- isFault
- dod
- time of death, no longer usedheaders
- void processPreppedMessage(AddDataRequestMsg request)
request
- void purgeMessageMap()
void purgeOutboundQueue()
void purgePolicyCache()
void removeDeadMessage()
void removeFromQueue(UUID id)
id
- void removeFromQueue(String id)
id
- void setRunning(boolean b)
void setTransactionThreadId(Long ThreadId, String id) throws Exception
Exception
boolean shouldAgentRecordRequestContent(String requesturl)
requesturl
- boolean shouldAgentRecordResponseContent(String requesturl)
requesturl
- void terminate()
Set<String> getIgnoreList()
int getThreadMapSize()
void purgeThreadMap()
void setLastErrorMessage(String all_PCS_endpoints_are_either_unreachable_)
void incMessagesProcessed(int size)
Copyright © 2008–2017 MIL-OSS. All rights reserved.