Esempio n. 1
0
 public void empty() {
   m_socket = null;
   m_input.empty();
   m_input = null;
   m_output.empty();
   m_output = null;
 }
Esempio n. 2
0
 public void dump(PrintStream ps) {
   ps.print(
       "\txmlexchanger("
           + (isRunning() ? "running" : "stopped")
           + ") : "
           + "count("
           + m_porters.size()
           + "),"
           + "iqs("
           + m_input.getSize()
           + "),"
           + "oqs("
           + m_output.getSize()
           + ")\r\n");
   for (int i = 0; i < m_porters.size(); i++) {
     CMPPXMLPorter porter = (CMPPXMLPorter) m_porters.elementAt(i);
     porter.dump(ps);
   }
 }
Esempio n. 3
0
  public void distribute() {
    CMPPDeliver deliver = (CMPPDeliver) m_output.pop();
    if (deliver != null) {
      for (int i = 0; i < m_porters.size(); i++) {
        CMPPXMLPorter porter = (CMPPXMLPorter) m_porters.elementAt(i);
        porter.m_output.push(deliver);
      }

      deliver.empty();
      deliver = null;
    }
  }
Esempio n. 4
0
 public void checkTimeout() {
   m_input.checkTimeout();
   m_output.checkTimeout();
 }