Examples of TableConfiguration


Examples of org.apache.accumulo.server.conf.TableConfiguration

      readers.add(FileOperations.getInstance().openReader(file.path().toString(), false, ns, ns.getConf(), aconf.getConfiguration()));
    }
   
    List<IterInfo> emptyIterinfo = Collections.emptyList();
    Map<String,Map<String,String>> emptySsio = Collections.emptyMap();
    TableConfiguration tconf = aconf.getTableConfiguration(ke.getTableId().toString());
    reader = createScanIterator(ke, readers, auths, new byte[] {}, new HashSet<Column>(), emptyIterinfo, emptySsio, useTableIterators, tconf);
   
    HashSet<ByteSequence> columnSet = createColumnBSS(columns);
   
    reader.seek(new Range(ke.getPrevEndRow(), false, ke.getEndRow(), true), columnSet, columnSet.size() == 0 ? false : true);
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

          TestAPI.logger.info(tableRemovedEvent);
        }
       
      };
      LobbyContext lobbyContext = kenzo.getLobbyContext(listener);
      lobbyContext.createHoldemTable("test", new TableConfiguration());
    } catch (LoginException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

    client.getGui().setLobby(lobby);
//    final LobbyWindow lobby2 = new LobbyWindow(client2);
//    lobby2.setLobbyContext(client2.getCommunication());
//    client2.getGui().setLobby(lobby2);

    tConfig = new TableConfiguration(smallBet, delay, false, false, true,0);
    lobby.getContext().createHoldemTable(u.getUserName() + "'s test table", tConfig);
    // Run blocking calls in extra thread
    displayexecutor.execute(new Runnable() {

      public void run() {
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

      final LobbyWindow lobby = new LobbyWindow(client);
      lobby.setLobbyContext(client.getCommunication());
      client.getGui().setLobby(lobby);

      TableConfiguration tConfig = new TableConfiguration(smallBlind, delay,0);
      lobby.getContext().createHoldemTable(u.getUserName() + "'s test table", tConfig);
      // Run blocking calls in extra thread
      displayexecutor.execute(new Runnable() {

        public void run() {
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

        public void widgetSelected(SelectionEvent evt) {
          logger.debug("tableCreationButton.mouseDown, event=" + evt);
          try {
            int smallBlind = (int) ((Double.parseDouble(stakeCombo.getText().substring(0,
                stakeCombo.getText().indexOf("/")))) * 100);
            TableConfiguration tConfig = new TableConfiguration(smallBlind * 2, 2000,0);
           
            try {
              lobby.getContext().createHoldemTable(nameInput.getText(), tConfig);
            } catch (IllegalActionException e) {
              logger.error("This should not happen", e);
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

        ti.dispose();
        redraw();
        return;
      }
    }
    TableConfiguration tInfo = t.getTableConfiguration();
    TableItem item = new TableItem(availableGameTables, SWT.NONE);
    item.setText(new String[] { t.getName(), Long.toString(t.getId().getId()),
        ClientGUI.formatBet(tInfo.getSmallBlind()) + "/" + ClientGUI.formatBet(tInfo.getBigBlind()),
        "Holdem No Limit", Integer.toString(t.getNbPlayers()) + "/" + tInfo.getMaxNbPlayers() });
    item.setData(t);
  }
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

  private static List<Events> newDealEvents = Arrays.asList(Events.newDeal, Events.newRound, Events.smallBlind, Events.bigBlind, Events.nextPlayer);

  @Override
  public void setUp(){
    events = new EventSequenceChecker();
    TableConfiguration configuration = new TableConfiguration();
    table = new ServerTable(configuration);
    pokerTable = new PokerTable(new TableId(0), "table", configuration, new ExtendedAccountContext(){

      public void changePassword(String passwordHash) {
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

  public void test2AllInOneActivePlayerCase() {
    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 200),200);
      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 200), 200);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 150),150);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

Examples of org.cspoker.common.elements.table.TableConfiguration

    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),9);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
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.