Examples of version()


Examples of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.CachedEncodingTrait.version()

        dataOut.writeBoolean(o != null);
        if (o != null) {
            if( o instanceof Message) {
                if( !isTightEncodingEnabled() && !isCacheEnabled() ) {
                    CachedEncodingTrait encoding = ((Message) o).getCachedEncoding();
                    if( encoding !=null && !encoding.tight() && encoding.version()==getVersion()) {
                        Buffer buffer = encoding.buffer();
                        dataOut.write(buffer.data, buffer.offset + 4, buffer.length() - 4);
                        return;
                    }
                }
View Full Code Here

Examples of io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.version()

            log.error("Failed to generate shake response", e);
          }
        };

        final ServerWebSocketImpl ws = new ServerWebSocketImpl(vertx, theURI.toString(), theURI.getPath(),
            theURI.getQuery(), new HeadersAdaptor(request.headers()), wsConn, shake.version() != WebSocketVersion.V00,
            connectRunnable, options.getMaxWebsocketFrameSize());
        wsConn.handleWebsocketConnect(ws);
        if (ws.isRejected()) {
          if (firstHandler == null) {
            firstHandler = wsHandler;
View Full Code Here

Examples of java.util.UUID.version()

            catch (IllegalArgumentException e)
            {
                throw new MarshalException(String.format("Unable to make UUID from '%s'", source), e);
            }

            if (uuid.version() != 1)
                throw new MarshalException("TimeUUID supports only version 1 UUIDs");
        } else
        {
            throw new MarshalException(String.format("Unknown timeuuid representation: %s", source));
        }
View Full Code Here

Examples of java.util.UUID.version()

    UUID uuid1 = new UUID(
        strategy.getMostSignificantBits(),
        CustomVersionOneStrategy.generateLeastSignificantBits( now )
    );
    assertEquals( 2, uuid1.variant() );
    assertEquals( 1, uuid1.version() );

    for ( int i = 0; i < 100; i++ ) {
      UUID uuidX = new UUID(
          strategy.getMostSignificantBits(),
          CustomVersionOneStrategy.generateLeastSignificantBits( now )
View Full Code Here

Examples of java.util.UUID.version()

      UUID uuidX = new UUID(
          strategy.getMostSignificantBits(),
          CustomVersionOneStrategy.generateLeastSignificantBits( now )
      );
      assertEquals( 2, uuidX.variant() );
      assertEquals( 1, uuidX.version() );
      assertFalse( uuid1.equals( uuidX ) );
      assertEquals( uuid1.getMostSignificantBits(), uuidX.getMostSignificantBits() );
    }
  }
View Full Code Here

Examples of java.util.UUID.version()

    UUID uuid = new UUID(
        strategy.getMostSignificantBits(),
        CustomVersionOneStrategy.generateLeastSignificantBits( 0 )
    );
    assertEquals( 2, uuid.variant() );
    assertEquals( 1, uuid.version() );

    uuid = new UUID(
        strategy.getMostSignificantBits(),
        CustomVersionOneStrategy.generateLeastSignificantBits( Long.MAX_VALUE )
    );
View Full Code Here

Examples of java.util.UUID.version()

    uuid = new UUID(
        strategy.getMostSignificantBits(),
        CustomVersionOneStrategy.generateLeastSignificantBits( Long.MAX_VALUE )
    );
    assertEquals( 2, uuid.variant() );
    assertEquals( 1, uuid.version() );
  }
}
View Full Code Here

Examples of javarepl.client.JavaREPLClient.version()

            System.exit(0);
        } else {
            console.printInfo("Connected to remote instance at http://" + hostname + ":" + port);
        }

        String remoteInstanceVersion = replClient.version();
        if (!remoteInstanceVersion.equals(applicationVersion())) {
            console.printError("WARNING: Client version (" + applicationVersion() + ") is different from remote instance version (" + remoteInstanceVersion + ")");
        }

        return replClient;
View Full Code Here

Examples of javazoom.jl.decoder.Header.version()

            Bitstream m_bitstream = new Bitstream(pis);
            int streamPos = m_bitstream.header_pos();
            aff_properties.put("mp3.header.pos", new Integer(streamPos));
            Header m_header = m_bitstream.readFrame();
            // nVersion = 0 => MPEG2-LSF (Including MPEG2.5), nVersion = 1 => MPEG1
            nVersion = m_header.version();
            if (nVersion == 2) aff_properties.put("mp3.version.mpeg", Float.toString(2.5f));
            else aff_properties.put("mp3.version.mpeg", Integer.toString(2 - nVersion));
            // nLayer = 1,2,3
            nLayer = m_header.layer();
            aff_properties.put("mp3.version.layer", Integer.toString(nLayer));
View Full Code Here

Examples of net.java.trueupdate.artifact.spec.ArtifactDescriptor.version()

            @SuppressWarnings("unchecked")
            List<UpdateDescriptor> availableUpdate(UpdateMessage um) {
                final ArtifactDescriptor ad = um.artifactDescriptor();
                final UpdateDescriptor ud = uds.get(ad);
                return ud.updateVersion().equals(ad.version())
                        ? Collections.EMPTY_LIST
                        : Collections.singletonList(ud);
            }

            UpdateMessage updateNotice(UpdateMessage um, String uv) {
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.