diff --git a/b6Middleware/b6middleware.install4j b/b6Middleware/b6middleware.install4j
index 0baa3ba..b5a34ed 100644
--- a/b6Middleware/b6middleware.install4j
+++ b/b6Middleware/b6middleware.install4j
@@ -1,7 +1,7 @@
-
+
@@ -646,29 +646,43 @@ return console.askYesNo(message, true);
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/b6Middleware/c4jMiddleware.jar b/b6Middleware/c4jMiddleware.jar
index e475721..eba2d11 100644
Binary files a/b6Middleware/c4jMiddleware.jar and b/b6Middleware/c4jMiddleware.jar differ
diff --git a/b6Middleware/src/ABSTRACT/com/commander4j/Connector/InboundConnectorABSTRACT.java b/b6Middleware/src/ABSTRACT/com/commander4j/Connector/InboundConnectorABSTRACT.java
index 5c0f9c4..d5d1069 100644
--- a/b6Middleware/src/ABSTRACT/com/commander4j/Connector/InboundConnectorABSTRACT.java
+++ b/b6Middleware/src/ABSTRACT/com/commander4j/Connector/InboundConnectorABSTRACT.java
@@ -130,6 +130,11 @@ public boolean getEnabled()
return this.enabled;
}
+ public void resetInBoundConnectorCount()
+ {
+ inboundConnectorMessageCount = (long) 0;
+ }
+
public Boolean processInboundFile(String filename)
{
Boolean result = false;
diff --git a/b6Middleware/src/ABSTRACT/com/commander4j/Connector/OutboundConnectorABSTRACT.java b/b6Middleware/src/ABSTRACT/com/commander4j/Connector/OutboundConnectorABSTRACT.java
index 9bcdc62..1f4e3b2 100644
--- a/b6Middleware/src/ABSTRACT/com/commander4j/Connector/OutboundConnectorABSTRACT.java
+++ b/b6Middleware/src/ABSTRACT/com/commander4j/Connector/OutboundConnectorABSTRACT.java
@@ -34,6 +34,11 @@ public Long getOutboundConnectorCount()
{
return outboundConnectorCount;
}
+
+ public void resetOutBoundConnectorCount()
+ {
+ outboundConnectorCount = (long) 0;
+ }
public OutboundInterface getOutboundInterface()
{
diff --git a/b6Middleware/src/com/commander4j/Interface/Mapping/Map.java b/b6Middleware/src/com/commander4j/Interface/Mapping/Map.java
index 6e960fa..b693545 100644
--- a/b6Middleware/src/com/commander4j/Interface/Mapping/Map.java
+++ b/b6Middleware/src/com/commander4j/Interface/Mapping/Map.java
@@ -36,11 +36,23 @@ public Long getInboundMapMessageCount()
public void resetOutboundMapMessageCount()
{
outboundMapMsgCount = (long) 0;
+
+ int OutboundIntCount = getNumberofOutboundInterfaces();
+
+ if (OutboundIntCount > 0)
+ {
+ for (int x = 0; x < OutboundIntCount; x++)
+ {
+ getOutBoundInterface(x).connector.resetOutBoundConnectorCount();
+ }
+ }
}
public void resetInboundMapMessageCount()
{
inboundMapMsgCount = (long) 0;
+
+ getInboundInterface().connector.resetInBoundConnectorCount();
}
public Long getOutboundMapMessageCount()
@@ -52,23 +64,52 @@ public String toString()
{
int OutboundIntCount = getNumberofOutboundInterfaces();
String outboundTypeList = "";
+ String outboundPathList = "";
if (OutboundIntCount > 0)
{
for (int x = 0; x < OutboundIntCount; x++)
- {
- getOutBoundInterface(x).getType();
+ {
if (x > 0)
{
outboundTypeList = outboundTypeList + "+";
}
outboundTypeList = outboundTypeList + getOutBoundInterface(x).getType();
-
+ outboundPathList = outboundPathList + "
" +util.padString("",true,70," ")+util.padString(getOutBoundInterface(x).getType(),true,10," ")+" "+util.padString(getOutBoundInterface(x).connector.getOutboundConnectorCount().toString(),true,5," ")+" "+getOutBoundInterface(x).getOutputPath();
+
+// System.out.println("----------------------------");
+// System.out.println("Map ID :"+getId());
+// System.out.println("Map Description :"+getDescription());
+// System.out.println("Map InboundMapMessageCount :"+getInboundMapMessageCount());
+// System.out.println("Map OutboundMapMessageCount :"+getOutboundMapMessageCount());
+// System.out.println("Interface ID :"+getOutBoundInterface(x).getId());
+// System.out.println("Interface Description :"+getOutBoundInterface(x).getDescription());
+// System.out.println("Connector Type :"+getOutBoundInterface(x).connector.getType());
+// System.out.println("Connector Path :"+getOutBoundInterface(x).connector.getPath());
+// System.out.println("Connector Count :"+getOutBoundInterface(x).connector.getOutboundConnectorCount());
+// System.out.println("----------------------------");
}
}
- return util.padString(getId(), true, 7, " ") + " " + util.padString(getDescription(), true, 70, " ") + " " + util.padString(getInboundInterface().getType(), true, 10, " ") + " " + util.padString(outboundTypeList, true, 12, " ")
- + util.padString(getInboundMapMessageCount().toString(), false, 8, " ") + " " + util.padString(getOutboundMapMessageCount().toString(), false, 8, " ") + " " + getInboundInterface().getInputPath();
+
+ String result = ""+
+ util.padString(getId(), true, 7, " ") +
+ " " +
+ util.padString(getDescription(), true, 35, " ") +
+ ""+
+ util.padString(getInboundMapMessageCount().toString(), false, 8, " ") +
+ " " + "" +
+ util.padString(getOutboundMapMessageCount().toString(), false, 8, " ") +
+ " "+""+
+ util.padString(getInboundInterface().getType(), true, 10, " ") +
+ " " +
+ util.padString(getInboundInterface().connector.getInboundConnectorMessageCount().toString(),true,5," ")+
+ " " +
+ getInboundInterface().getInputPath()+outboundPathList+"";
+
+ result = result.replace(" ", " ");
+
+ return result;
}
public void setId(String ID)
diff --git a/b6Middleware/src/com/commander4j/mw/StartGUI.java b/b6Middleware/src/com/commander4j/mw/StartGUI.java
index 94eddb0..c50103a 100644
--- a/b6Middleware/src/com/commander4j/mw/StartGUI.java
+++ b/b6Middleware/src/com/commander4j/mw/StartGUI.java
@@ -24,7 +24,6 @@
import javax.swing.ListModel;
import javax.swing.ListSelectionModel;
import javax.swing.SwingConstants;
-import javax.swing.border.BevelBorder;
import javax.swing.border.EmptyBorder;
import com.commander4j.Interface.Mapping.Map;
@@ -37,12 +36,10 @@ public class StartGUI extends JFrame
private static final long serialVersionUID = 1L;
private JPanel contentPane;
- // private StartMW smw = new StartMW();
private JButton btnStart;
private JButton btnStop;
- private JPanel panelStatus = new JPanel();
- private JLabel lblStatus = new JLabel("Ready");
- private JPanel progressBarInterface = new JPanel();
+
+ private JLabel lblStatus = new JLabel();
private final JLabel lblInterfaceStatus = new JLabel("Interface Status :");
private JLabel label_NoOfMaps = new JLabel("");
private JList4j