Examples of Beacon


Examples of avrobase.data.Beacon

      total++;
    }
    assertEquals(0, total);
    List<byte[]> rows = new ArrayList<byte[]>();
    for (int i = 0; i < 1000; i++) {
      Beacon beacon = new Beacon();
      beacon.browser = "asdfasdfasdfasd" + i;
      beacon.login = "adfasdfasdfasdfsfas" + i;
      beacon.useragent = "adfasdfasdfasdfadsfadsf" + i;
      beacon.parameters = new HashMap<CharSequence, CharSequence>();
      rows.add(beaconCacher.create(beacon));
View Full Code Here

Examples of bagcheck.Beacon

              dis.readFully(valuebytes, 0, len);
              DecoderFactory decoderFactory = new DecoderFactory();
              Decoder d = decoderFactory.binaryDecoder(new ByteArrayInputStream(valuebytes, 0, len), null);
              // Read the data
              SpecificDatumReader<Beacon> sdr = new SpecificDatumReader<Beacon>(writerSchema, Beacon.SCHEMA$);
              Beacon read = sdr.read(null, d);
              beaconFAB.put(row, read);
            }
            return null;
          }
        });
View Full Code Here

Examples of org.spout.vanilla.component.block.material.Beacon

  public void handleServer(ServerSession session, BeaconMessage msg) {
    Window window = session.getPlayer().get(WindowHolder.class).getActiveWindow();
    if (!(window instanceof BeaconWindow)) {
      throw new IllegalStateException("Player tried to change Beacon but does not have an opened Beacon.");
    }
    Beacon beacon = ((BeaconWindow) window).getBeacon();
    beacon.setPrimaryEffect(EntityEffectType.get(msg.getPrimaryEffect()));
    beacon.setSecondaryEffect(EntityEffectType.get(msg.getSecondaryEffect()));
    for (InventoryConverter converter : window.getInventoryConverters()) {
      if (converter.getInventory() instanceof BeaconInventory) {
        converter.getInventory().clear();
      }
    }
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.