Examples of Version


Examples of org.jboss.messaging.util.Version

         // no state set yet, initialize and configure it

         if(trace) { log.trace(connectionDelegate + " not configured, configuring ..."); }

         int serverID = connectionDelegate.getServerID();
         Version versionToUse = connectionDelegate.getVersionToUse();
         JMSRemotingConnection remotingConnection = connectionDelegate.getRemotingConnection();

         if (versionToUse == null)
         {
            throw new IllegalStateException("Connection version is null");
View Full Code Here

Examples of org.jdesktop.wonderland.utils.version.Version

        // set the page URL variable
        request.setAttribute("pageURL", pageURL);

        // set the version variable
        request.setAttribute("version", new Version());

        // get the set of registered links, and apply any filter
        List<AdminRegistration> registry = getRegistry();

        // go through and apply any filters
View Full Code Here

Examples of org.jitsi.service.version.Version

        {
            try
            {
                List<String> userAgentTokens = new LinkedList<String>();

                Version ver =
                        SipActivator.getVersionService().getCurrentVersion();

                userAgentTokens.add(ver.getApplicationName());
                userAgentTokens.add(ver.toString());

                String osName = System.getProperty("os.name");
                userAgentTokens.add(osName);

                userAgentHeader
View Full Code Here

Examples of org.jitterbit.plugin.sdk.Version

     *
     * @throws JitterbitPluginException
     *             if the requested parser could not be created.
     */
    static InputXmlParser getParser(File inputXml) throws JitterbitPluginException {
        Version specVersion = getPipelinePluginSpecificationVersion(inputXml);
        if ((specVersion.getMajorVersion() == 1) && (specVersion.getMinorVersion() == 0)) {
            return new InputXmlParserImpl_v10(specVersion);
        }
        throw new JitterbitPluginException("Cannot handle input XML for version " + specVersion
                        + " of the Jitterbit Pipeline Plugin Specification.");
    }
View Full Code Here

Examples of org.jitterbit.util.version.Version

    /**
     * Returns the maximum of {@link #getRequiredVersion()} called on each item in this project.
     */
    @Override
    public Version getRequiredVersion() {
        Version max = VersionFactory.newVersion(0, 0, 0, 0);
        for (IntegrationEntity e : getAllEntities()) {
            Version v = e.getRequiredVersion();
            if (v.isLaterThan(max)) {
                max = v;
            }
        }
        return max;
    }
View Full Code Here

Examples of org.jivesoftware.smackx.packet.Version

     */
    public void run() {
        XMPPConnection con = BuddyList.getInstance().getConnection();
        if( dialog.cancelled ) return;

        Version request = new Version();
        request.setType(IQ.Type.GET);
        request.setTo(dialog.getUser());

        // Create a packet collector to listen for a response.
        PacketCollector collector = con
                .createPacketCollector(new PacketIDFilter(request.getPacketID()));

        con.sendPacket(request);

        // Wait up to 5 seconds for a result.
        IQ result = (IQ) collector.nextResult(SmackConfiguration
                .getPacketReplyTimeout());
        if( dialog.cancelled ) return;

        if (result != null && result.getType() == IQ.Type.RESULT) {
            Version v = (Version) result;

            field.setText(v.getName() + " " + v.getVersion() + " / "
                    + v.getOs());
        } else
            field.setText("N/A");
        field.validate();
    }
View Full Code Here

Examples of org.jivesoftware.util.Version

                // See if the plugin specifies a version of Openfire
                // required to run.
                Element minServerVersion = (Element)pluginXML.selectSingleNode("/plugin/minServerVersion");
                if (minServerVersion != null) {
                    String requiredVersion = minServerVersion.getTextTrim();
                    Version version = XMPPServer.getInstance().getServerInfo().getVersion();
                    String hasVersion = version.getMajor() + "." + version.getMinor() + "." +
                        version.getMicro();
                    if (hasVersion.compareTo(requiredVersion) < 0) {
                        String msg = "Ignoring plugin " + pluginDir.getName() + ": requires " +
                            "server version " + requiredVersion;
                        Log.warn(msg);
                        System.out.println(msg);
View Full Code Here

Examples of org.jmxdatamart.Version

    return this.getClass().getClassLoader().loadClass(className);
  }

  private Version getVersion() throws ClassNotFoundException, IOException {
    if (version == null) {
      this.version = new Version(loadClass(className));
    }

    return version;
  }
View Full Code Here

Examples of org.jnode.util.Version

                    System.getProperty("os.version") : plugin.getPluginVersion();
            try {
                PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
                PluginRegistry reg = mgr.getRegistry();
                if (reg.getPluginDescriptor(id) == null) {
                    reg.loadPlugin(mgr.getLoaderManager(), new PluginReference(id, new Version(ver)), true);
                }
            } catch (Exception ex) {
                System.out.println(ex.getMessage());
                throw new TestRunnerException(
                        "Cannot load plugin '" + plugin.getPluginId() + "/" + ver + "'", ex);
View Full Code Here

Examples of org.keycloak.Version

    @Test
    public void testVersion() throws Exception {
        Client client = ClientBuilder.newClient();
        WebTarget target = client.target(org.keycloak.testsuite.Constants.AUTH_SERVER_ROOT).path("version");
        Version version = target.request().get(Version.class);
        Assert.assertNotNull(version);
        Assert.assertNotNull(version.getVersion());
        Assert.assertNotNull(version.getBuildTime());
        Assert.assertNotEquals(version.getVersion(), Version.UNKNOWN);
        Assert.assertNotEquals(version.getBuildTime(), Version.UNKNOWN);

        Version version2 = client.target("http://localhost:8081/secure-portal").path(AdapterConstants.K_VERSION).request().get(Version.class);
        Assert.assertNotNull(version2);
        Assert.assertNotNull(version2.getVersion());
        Assert.assertNotNull(version2.getBuildTime());
        Assert.assertEquals(version.getVersion(), version2.getVersion());
        Assert.assertEquals(version.getBuildTime(), version2.getBuildTime());
        client.close();

    }
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.