Examples of CyclicBuffer


Examples of org.apache.log4j.helpers.CyclicBuffer

class JTableAppenderModel extends AbstractTableModel {

  CyclicBuffer cb;
 
  JTableAppenderModel(int size) {
    cb = new CyclicBuffer(size);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

  /**
     The <b>BufferSize</b> option takes a positive integer representing
     the number of events this appender will buffer and send to newly connected clients.*/
  public void setBufferSize(int _bufferSize) {
    buffer = new CyclicBuffer(_bufferSize);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

class JListViewModel extends AbstractListModel {

  CyclicBuffer cb;
 
  JListViewModel(int size) {
    cb = new CyclicBuffer(size);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

class JTableAppenderModel extends AbstractTableModel {

  CyclicBuffer cb;
 
  JTableAppenderModel(int size) {
    cb = new CyclicBuffer(size);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

   * The <b>BufferSize</b> option takes a positive integer representing the number of events this appender will buffer and send to newly connected
   * clients.
   */
  public
  void setBufferSize(int _bufferSize) {
    buffer = new CyclicBuffer(_bufferSize);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

class JListViewModel extends AbstractListModel {

  CyclicBuffer cb;
 
  JListViewModel(int size) {
    cb = new CyclicBuffer(size);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

class AppenderTableModel extends AbstractTableModel {

  CyclicBuffer cb;
 
  AppenderTableModel(int size) {
    cb = new CyclicBuffer(size);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

  /**
     The <b>BufferSize</b> option takes a positive integer representing
     the number of events this appender will buffer and send to newly connected clients.*/
  public void setBufferSize(int _bufferSize) {
    buffer = new CyclicBuffer(_bufferSize);
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

     * Options are activated and become effective only after calling
     * this method.
     */
    public void activateOptions() {
        try {
            cb = new CyclicBuffer(bufferSize);

            // Create a connection to the XMPP server
            LogLog.debug("Stablishing connection with XMPP server");
            ConnectionConfiguration xmppConf = new ConnectionConfiguration(host, port);
            if (SSL) {
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

 
  public
  void test0() {
    int size = 2;

    CyclicBuffer cb = new CyclicBuffer(size);   
    assertEquals(cb.getMaxSize(), size);   

    cb.add(e[0]);
    assertEquals(cb.length(), 1);   
    assertEquals(cb.get(), e[0]); assertEquals(cb.length(), 0);
    assertNull(cb.get()); assertEquals(cb.length(), 0);


    cb = new CyclicBuffer(size);   
    cb.add(e[0]);
    cb.add(e[1]);
    assertEquals(cb.length(), 2);   
    assertEquals(cb.get(), e[0]); assertEquals(cb.length(), 1);
    assertEquals(cb.get(), e[1]); assertEquals(cb.length(), 0);
    assertNull(cb.get()); assertEquals(cb.length(), 0);

   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.