Change-Id: I458425ec4482665a29b56012ec91610346eac378
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
}
public void setTxIdAndTableIdMapEntry(NodeId nodeId, TransactionId id,Short tableId){
}
public void setTxIdAndTableIdMapEntry(NodeId nodeId, TransactionId id,Short tableId){
+ if(id == null)
+ return;
txIdTotableIdMap.put(new TxIdEntry(nodeId,id,null), tableId);
}
txIdTotableIdMap.put(new TxIdEntry(nodeId,id,null), tableId);
}
}
}
public void addTxIdToRequestTypeEntry (NodeId nodeId, TransactionId id,StatsRequestType type){
}
}
public void addTxIdToRequestTypeEntry (NodeId nodeId, TransactionId id,StatsRequestType type){
+ if(id == null)
+ return;
TxIdEntry entry = new TxIdEntry(nodeId,id,type);
txIdToRequestTypeMap.put(entry, getExpiryTime());
}
TxIdEntry entry = new TxIdEntry(nodeId,id,type);
txIdToRequestTypeMap.put(entry, getExpiryTime());
}
if (statsFlow.getClass() != storedFlow.getClass()) {
return false;
}
if (statsFlow.getClass() != storedFlow.getClass()) {
return false;
}
- if (statsFlow.getBufferId()== null) {
- if (storedFlow.getBufferId() != null) {
- return false;
- }
- } else if(!statsFlow.getBufferId().equals(storedFlow.getBufferId())) {
- return false;
- }
if (statsFlow.getContainerName()== null) {
if (storedFlow.getContainerName()!= null) {
return false;
if (statsFlow.getContainerName()== null) {
if (storedFlow.getContainerName()!= null) {
return false;
} else if(!statsFlow.getContainerName().equals(storedFlow.getContainerName())) {
return false;
}
} else if(!statsFlow.getContainerName().equals(storedFlow.getContainerName())) {
return false;
}
- if (statsFlow.getCookie()== null) {
- if (storedFlow.getCookie()!= null) {
- return false;
- }
- } else if(!statsFlow.getCookie().equals(storedFlow.getCookie())) {
- return false;
- }
if (statsFlow.getMatch()== null) {
if (storedFlow.getMatch() != null) {
return false;
if (statsFlow.getMatch()== null) {
if (storedFlow.getMatch() != null) {
return false;
else if(!matchEquals(statsFlow.getMatch(), storedFlow.getMatch())) {
return false;
}
else if(!matchEquals(statsFlow.getMatch(), storedFlow.getMatch())) {
return false;
}
- if (statsFlow.getHardTimeout() == null) {
- if (storedFlow.getHardTimeout() != null) {
- return false;
- }
- } else if(!statsFlow.getHardTimeout().equals(storedFlow.getHardTimeout() )) {
- return false;
- }
- if (statsFlow.getIdleTimeout()== null) {
- if (storedFlow.getIdleTimeout() != null) {
- return false;
- }
- } else if(!statsFlow.getIdleTimeout().equals(storedFlow.getIdleTimeout())) {
- return false;
- }
if (statsFlow.getPriority() == null) {
if (storedFlow.getPriority() != null) {
return false;
if (statsFlow.getPriority() == null) {
if (storedFlow.getPriority() != null) {
return false;