Examples of upgrade()


Examples of org.glassfish.tyrus.core.TyrusWebSocketEngine.upgrade()

      getEndpointHelper().register(engine, tyrusEndpoint);

      HttpHeaders headers = request.getHeaders();
      RequestContext requestContext = createRequestContext(servletRequest, path, headers);
      TyrusUpgradeResponse upgradeResponse = new TyrusUpgradeResponse();
      UpgradeInfo upgradeInfo = engine.upgrade(requestContext, upgradeResponse);

      switch (upgradeInfo.getStatus()) {
        case SUCCESS:
          if (logger.isTraceEnabled()) {
            logger.trace("Successful upgrade: " + upgradeResponse.getHeaders());
View Full Code Here

Examples of org.jrdf.query.relation.type.PositionalNodeType.upgrade()

        final AttributeName key = newAttribute.getAttributeName();
        final PositionalNodeType currentEntry = variables.get(key);
        final NodeType type = newAttribute.getType();
        if (type instanceof PositionalNodeType) {
            if (!currentEntry.getClass().equals(type.getClass())) {
                variables.put(key, currentEntry.upgrade((PositionalNodeType) type));
            }
        }
    }

    private void addNewEntry(final Attribute attribute) {
View Full Code Here

Examples of org.rhq.bundle.ant.type.DeploymentUnitType.upgrade()

            break;
        case STOP:
            deploymentUnit.stop();
            break;
        case UPGRADE:
            deploymentUnit.upgrade(revert, clean);
            break;
        case UNINSTALL:
            deploymentUnit.uninstall();
            break;
        }
View Full Code Here

Examples of org.rhq.core.db.upgrade.ServerVersionColumnUpgrader.upgrade()

    public void createServerVersionColumnIfNeeded() {
        Connection connection = null;
        try {
            connection = dataSource.getConnection();
            ServerVersionColumnUpgrader versionColumnUpgrader = new ServerVersionColumnUpgrader();
            versionColumnUpgrader.upgrade(connection, RHQ_VERSION);
            versionColumnUpgrader.setVersionForAllServers(connection, RHQ_VERSION);
        } catch (Exception e) {
            LOG.error("Could not check server version column", e);
        } finally {
            JDBCUtil.safeClose(connection);
View Full Code Here

Examples of org.rhq.core.db.upgrade.ServerVersionColumnUpgrader.upgrade()

        Connection connection = null;
        try {
            connection = getDatabaseConnection(connectionUrl, username, password);
            ServerVersionColumnUpgrader versionColumnUpgrader = new ServerVersionColumnUpgrader();
            versionColumnUpgrader.upgrade(connection, version);
            int rowsUpdated = versionColumnUpgrader.setVersionForServerWithName(connection, version, serverName);
            if (1 != rowsUpdated) {
                throw new IllegalStateException("Expected [1] Server update but updated [" + rowsUpdated + "].");
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.rhq.core.db.upgrade.StorageNodeVersionColumnUpgrader.upgrade()

        String storageNodeAddress, String version) throws Exception {
        Connection connection = null;
        try {
            connection = DbUtil.getConnection(connectionUrl, username, password);
            StorageNodeVersionColumnUpgrader versionColumnUpgrader = new StorageNodeVersionColumnUpgrader();
            versionColumnUpgrader.upgrade(connection, version);
            int rowsUpdated = versionColumnUpgrader.setVersionForNodeWithAddress(connection, version,
                storageNodeAddress);
            if (1 != rowsUpdated) {
                throw new IllegalStateException("Expected [1] StorageNode update but updated [" + rowsUpdated + "].");
            }
View Full Code Here

Examples of org.rhq.core.db.upgrade.StorageNodeVersionColumnUpgrader.upgrade()

    public void createStorageNodeVersionColumnIfNeeded() {
        Connection connection = null;
        try {
            connection = dataSource.getConnection();
            StorageNodeVersionColumnUpgrader versionColumnUpgrader = new StorageNodeVersionColumnUpgrader();
            versionColumnUpgrader.upgrade(connection, RHQ_VERSION);
            versionColumnUpgrader.setVersionForAllNodes(connection, RHQ_VERSION);
        } catch (Exception e) {
            LOG.error("Could not check storage node version column", e);
        } finally {
            JDBCUtil.safeClose(connection);
View Full Code Here

Examples of org.rhq.helpers.perftest.support.dbsetup.DbSetup.upgrade()

            try {
                DbSetup dbSetup = new DbSetup(jdbcConnection);
                dbSetup.setup(state.dbVersion());
                Importer.run(connection, input);
                dbSetup.upgrade(null);
            } finally {
                input.close();
            }
        } catch (Exception e) {
            LOG.warn("Failed to setup a database at [ " + dbUrl + "] for method '" + method.getTestMethod().getMethodName() + "'.", e);
View Full Code Here

Examples of org.sonatype.configuration.upgrade.SingleVersionUpgrader.upgrade()

      msg.setConfiguration(upgrader.loadConfiguration(file));

      while (!Configuration.MODEL_VERSION.equals(msg.getModelVersion())) {
        if (upgrader != null) {
          upgrader.upgrade(msg);
        }
        else {
          // we could parse the XML but have no model version? Is this nexus config at all?
          throw new UnsupportedConfigurationVersionException(modelVersion, file);
        }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.PluginService.upgrade()

    ServiceReference addOnServiceReference = null;
    try {
      addOnServiceReference = getAddOnService(addOnServiceReference);
      if (addOnServiceReference != null) {
        PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
        InstallOrUpgradeStatus result = service.upgrade(version);
        return handleResult(result);
      }
    }
    catch (Throwable e) {
      RooCoreActivator.log(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.