Examples of Repository

@source $URL$
  • org.guvnor.common.services.project.model.Repository
  • org.guvnor.structure.repositories.Repository
  • org.infoglue.cms.entities.management.Repository
  • org.jboss.gravia.repository.Repository
    A repository that contains {@link Resource resources}. @author thomas.diesler@jboss.com @since 11-May-2012
  • org.jboss.profileservice.spi.repository.Repository
    Mirror the OBR Repository @author Scott.Stark@jboss.org @version $Revision: 65457 $
  • org.jbpm.designer.repository.Repository
    Repository is responsible for managing its components that are as follows:
  • org.jdesktop.wonderland.common.modules.ModuleRepository.Repository
  • org.jfree.repository.Repository
    Creation-Date: 13.11.2006, 11:37:44 @author Thomas Morgner
  • org.jpublish.Repository
  • org.lilyproject.repository.api.Repository
    A Repository is a set of tables, tables contain records.

    This interface is here for backwards compatibility with pre-2.2 Lily versions. In Lily 2.2, the functionality has been split out over 2 new interfaces: {@link LRepository} and {@link LTable}, from which Repository extends. New code should be written against either {@link LRepository} or {@link LTable}.

    A Repository object represents one specific table within one specific named repository. It is obtained by:

  • casting the result of calling on {@link RepositoryManager#getRepository(String)} or related methodsto Repository (this will then use the default 'record' table)
  • casting the result of calling {@link LRepository#getTable(String)} to Repository.
  • For backwards compatibility, Repository extends from LTable. The methods of LTable will in this case be executed against the table for which this repository has been retrieved: either the default table called "record" or another table in case this Repository instance was cast from a call on {@link Repository#getTable(String)}.

    While Repository extends from Closeable, you don't need to call close on it. When using LilyClient, Repositories are closed as part of closing LilyClient, and when embedded in the lily-server process, the lifecycle is also managed automatically.

  • org.locationtech.geogig.repository.Repository
    A repository is a collection of commits, each of which is an archive of what the project's working tree looked like at a past date, whether on your machine or someone else's.

    It also defines HEAD (see below), which identifies the branch or commit the current working tree stemmed from. Lastly, it contains a set of branches and tags, to identify certain commits by name.

    @see WorkingTree
  • org.modeshape.jcr.api.Repository
    An extension of JCR 2.0's Repository interface, with a few ModeShape-specific enhancements.
  • org.moxie.Repository
  • org.omg.CORBA.Repository
  • org.openide.filesystems.Repository
  • org.openrdf.repository.Repository
    A Sesame repository that contains RDF data that can be queried and updated. Access to the repository can be acquired by openening a connection to it. This connection can then be used to query and/or update the contents of the repository. Depending on the implementation of the repository, it may or may not support multiple concurrent connections.

    Please note that a repository needs to be initialized before it can be used and that it should be shut down before it is discarded/garbage collected. Forgetting the latter can result in loss of data (depending on the Repository implementation)! @author Arjohn Kampman

  • org.opensolaris.opengrok.history.Repository
    An interface for an external repository. @author Trond Norbye
  • org.osgi.service.obr.Repository
    Represents a repository. @version $Revision: 1.3 $
  • org.osgi.service.repository.Repository
    A repository service that contains {@link Resource resources}.

    Repositories may be registered as services and may be used as by a resolve context during resolver operations.

    Repositories registered as services may be filtered using standard service properties. @ThreadSafe @noimplement @author $Id: 0ce322be0d7242d30e47b7f972057d90e9b57c5e $

  • org.outerj.daisy.repository.Repository
  • org.pentaho.di.repository.Repository
  • org.pentaho.reporting.libraries.repository.Repository
    A repository represents a abstract view on a filesystem. It always has a single root-entry and grants access to a repository-specific mime-registry. @author Thomas Morgner
  • org.platformlayer.images.model.Repository
  • org.ringojs.repository.Repository
    Repository represents an abstract container of resources (e.g. code, skins, ...). In addition to resources, repositories may contain other repositories, building a hierarchical structure.
  • org.sonatype.nexus.client.core.subsystem.repository.Repository
    A Nexus repository. @since 2.3
  • org.sonatype.nexus.proxy.repository.Repository
    Repository interface used by Proximity. It is an extension of ResourceStore iface, allowing to make direct RepositoryItemUid based requests which bypasses AccessManager. Also, defines some properties. @author cstamas
  • org.springframework.roo.project.Repository
    Simplified immutable representation of a repository.

    Structured after the model used by Maven and Ivy. @author Stefan Schmidt @since 1.1

  • org.stringtree.Repository
  • org.uberfire.backend.repositories.Repository
  • org.wso2.carbon.registry.core.jdbc.Repository
    Encapsulates the retrieving, storing, modifying and deleting of resources. This class only deals with the current versions of resources and it is unaware of any versioning or snapshot activity. Only the current version related tables are accessed and updated from the methods of this class.
  • se.jbee.inject.Repository
    Manages the already created instances. @author Jan Bernitt (jan@jbee.se)
  • uk.ac.osswatch.simal.model.jena.Repository

  • Examples of org.apache.provisionr.api.software.Repository

    public class InstallRepositoriesTest {

        @Test
        public void testCreatePuppetScript() throws Exception {
            Repository repository = Repository.builder()
                .name("bigtop")
                .addEntry("deb http://bigtop.s3.amazonaws.com/releases/0.5.0/ubuntu/lucid/x86_64  bigtop contrib")
                .key("-----BEGIN PGP PUBLIC KEY BLOCK-----\n" +
                    "Version: GnuPG v1.4.10 (GNU/Linux)\n" +
                    "\n" +
    View Full Code Here

    Examples of org.apache.servicemix.gshell.features.Repository

            }
            repositories.put(url, repo);
        }

        public void removeRepository(URL url) {
            Repository repo = repositories.remove(url);
            // TODO: ...
        }
    View Full Code Here

    Examples of org.apache.sirona.repositories.Repository

            try
            {
                final StopWatch stopwatch;
                if (context.shouldExecute()) {
                    Repository repository =  Repository.INSTANCE;
                    if (repository==null){
                        System.out.println("repository is null");
                    }
                    final Counter monitor = repository.getCounter(getKey(invocation, name));
                    if ( monitor == null){
                        System.out.println("monitor is null");
                    }
                    stopwatch = Repository.INSTANCE.start(monitor);
                } else {
    View Full Code Here

    Examples of org.apache.sling.ide.transport.Repository

                if (field.getPropertyName().equals("jcr:primaryType")) {
                    editor = new TextCellEditor(tableViewer.getTable()) {
                        @Override
                        protected Control createControl(Composite parent) {
                            Text text = (Text) super.createControl(parent);
                            Repository repository = ServerUtil.getDefaultRepository(getNode().getProject());
                            NodeTypeRegistry ntManager = (repository==null) ? null : repository.getNodeTypeRegistry();
                            if (ntManager == null) {
                                return text;
                            }
                            try {
                                Collection<String> types = ntManager.getAllowedPrimaryChildNodeTypes(getNode().getParent().getPrimaryType());
    View Full Code Here

    Examples of org.apache.sqoop.repository.Repository

      }

      public MSubmission submit(long jobId, HttpEventContext ctx) {
        String username = ctx.getUsername();

        Repository repository = RepositoryManager.getInstance().getRepository();

        MJob job = repository.findJob(jobId);
        if (job == null) {
          throw new SqoopException(FrameworkError.FRAMEWORK_0004,
            "Unknown job id " + jobId);
        }

        if (!job.getEnabled()) {
          throw new SqoopException(FrameworkError.FRAMEWORK_0009,
            "Job id: " + job.getPersistenceId());
        }

        MConnection connection = repository.findConnection(job.getConnectionId());

        if (!connection.getEnabled()) {
          throw new SqoopException(FrameworkError.FRAMEWORK_0010,
            "Connection id: " + connection.getPersistenceId());
        }

        SqoopConnector connector =
          ConnectorManager.getInstance().getConnector(job.getConnectorId());

        // Transform forms to connector specific classes
        Object connectorConnection = ClassUtils.instantiate(
          connector.getConnectionConfigurationClass());
        FormUtils.fromForms(connection.getConnectorPart().getForms(),
          connectorConnection);

        Object connectorJob = ClassUtils.instantiate(
          connector.getJobConfigurationClass(job.getType()));
        FormUtils.fromForms(job.getConnectorPart().getForms(), connectorJob);

        // Transform framework specific forms
        Object frameworkConnection = ClassUtils.instantiate(
          FrameworkManager.getInstance().getConnectionConfigurationClass());
        FormUtils.fromForms(connection.getFrameworkPart().getForms(),
          frameworkConnection);

        Object frameworkJob = ClassUtils.instantiate(
          FrameworkManager.getInstance().getJobConfigurationClass(job.getType()));
        FormUtils.fromForms(job.getFrameworkPart().getForms(), frameworkJob);

        // Create request object
        MSubmission summary = new MSubmission(jobId);
        SubmissionRequest request = executionEngine.createSubmissionRequest();

        summary.setCreationUser(username);
        summary.setLastUpdateUser(username);

        // Save important variables to the submission request
        request.setSummary(summary);
        request.setConnector(connector);
        request.setConfigConnectorConnection(connectorConnection);
        request.setConfigConnectorJob(connectorJob);
        request.setConfigFrameworkConnection(frameworkConnection);
        request.setConfigFrameworkJob(frameworkJob);
        request.setJobType(job.getType());
        request.setJobName(job.getName());
        request.setJobId(job.getPersistenceId());
        request.setNotificationUrl(notificationBaseUrl + jobId);

        // Let's register all important jars
        // sqoop-common
        request.addJarForClass(MapContext.class);
        // sqoop-core
        request.addJarForClass(FrameworkManager.class);
        // sqoop-spi
        request.addJarForClass(SqoopConnector.class);
        // Execution engine jar
        request.addJarForClass(executionEngine.getClass());
        // Connector in use
        request.addJarForClass(connector.getClass());

        // Extra libraries that Sqoop code requires
        request.addJarForClass(JSONValue.class);

        // Get connector callbacks
        switch (job.getType()) {
          case IMPORT:
            request.setConnectorCallbacks(connector.getImporter());
            break;
          case EXPORT:
            request.setConnectorCallbacks(connector.getExporter());
            break;
          default:
            throw new SqoopException(FrameworkError.FRAMEWORK_0005,
              "Unsupported job type " + job.getType().name());
        }
        LOG.debug("Using callbacks: " + request.getConnectorCallbacks());

        // Initialize submission from connector perspective
        CallbackBase baseCallbacks = request.getConnectorCallbacks();

        Class<? extends Initializer> initializerClass = baseCallbacks
          .getInitializer();
        Initializer initializer = (Initializer) ClassUtils
          .instantiate(initializerClass);

        if (initializer == null) {
          throw new SqoopException(FrameworkError.FRAMEWORK_0006,
            "Can't create initializer instance: " + initializerClass.getName());
        }

        // Initializer context
        InitializerContext initializerContext = new InitializerContext(
          request.getConnectorContext());

        // Initialize submission from connector perspective
        initializer.initialize(initializerContext,
          request.getConfigConnectorConnection(),
          request.getConfigConnectorJob());

        // Add job specific jars to
        request.addJars(initializer.getJars(initializerContext,
          request.getConfigConnectorConnection(),
          request.getConfigConnectorJob()));

        // Retrieve and persist the schema
        request.getSummary().setConnectorSchema(initializer.getSchema(
          initializerContext,
          request.getConfigConnectorConnection(),
          request.getConfigConnectorJob()
          ));

        // Bootstrap job from framework perspective
        switch (job.getType()) {
          case IMPORT:
            prepareImportSubmission(request);
            break;
          case EXPORT:
            prepareExportSubmission(request);
            break;
          default:
            throw new SqoopException(FrameworkError.FRAMEWORK_0005,
              "Unsupported job type " + job.getType().name());
        }

        // Make sure that this job id is not currently running and submit the job
        // only if it's not.
        synchronized (getClass()) {
          MSubmission lastSubmission = repository.findSubmissionLastForJob(jobId);
          if (lastSubmission != null && lastSubmission.getStatus().isRunning()) {
            throw new SqoopException(FrameworkError.FRAMEWORK_0002,
              "Job with id " + jobId);
          }

          // TODO(jarcec): We might need to catch all exceptions here to ensure
          // that Destroyer will be executed in all cases.
          boolean submitted = submissionEngine.submit(request);
          if (!submitted) {
            destroySubmission(request);
            summary.setStatus(SubmissionStatus.FAILURE_ON_SUBMIT);
          }

          repository.createSubmission(summary);
        }

        // Return job status most recent
        return summary;
      }
    View Full Code Here

    Examples of org.apache.stratos.adc.mgt.dao.Repository

            cartridge.setClusterDomain(resultSet.getString("CLUSTER_DOMAIN"));
            cartridge.setClusterSubdomain(resultSet.getString("CLUSTER_SUBDOMAIN"));
            cartridge.setProvider(resultSet.getString("PROVIDER"));
            cartridge.setPolicy(resultSet.getString("POLICY"));
            cartridge.setMappedDomain(resultSet.getString("MAPPED_DOMAIN"));
            Repository repo = new Repository();
            repo.setRepoName(resultSet.getString("REPO_NAME"));
            cartridge.setRepository(repo);
            cartridge.setHostName(resultSet.getString("HOSTNAME"));
            int dataCartridgeId = resultSet.getInt("DATA_CARTRIDGE_ID");
            if (dataCartridgeId != 0) {
              DataCartridge dataCartridge = new DataCartridge();
    View Full Code Here

    Examples of org.apache.stratos.manager.repository.Repository

            // Generate and set the key
            String subscriptionKey = CartridgeSubscriptionUtils.generateSubscriptionKey();
            cartridgeSubscription.setSubscriptionKey(subscriptionKey);

            // Create repository
            Repository repository = cartridgeSubscription.manageRepository(null, """", false);

            // Create subscriber
            Subscriber subscriber = new Subscriber(subscriptionData.getTenantAdminUsername(), subscriptionData.getTenantId(), subscriptionData.getTenantDomain());

            // create subscription
    View Full Code Here

    Examples of org.b3log.latke.repository.Repository

            if (badGetDataRequest(request, jsonObject) || !authSucc(request, jsonObject)) {
                return;
            }

            final String repositoryName = request.getParameter("repositoryName");
            final Repository repository = Repositories.getRepository(repositoryName);
            if (null == repository) {
                jsonObject.put(Keys.STATUS_CODE, HttpServletResponse.SC_BAD_REQUEST);
                jsonObject.put(Keys.MSG, "Not found repository[name=" + repositoryName + "]");

                return;
            }

            final boolean cacheEnabled = repository.isCacheEnabled();

            repository.setCacheEnabled(false);

            final Query query = new Query().setCurrentPageNum(Integer.valueOf(request.getParameter("pageNum"))).
                    setPageSize(Integer.valueOf(request.getParameter("pageSize")));

            try {
                final JSONObject result = repository.get(query);
                final JSONObject pagination = result.getJSONObject(Pagination.PAGINATION);
                final JSONArray data = result.getJSONArray(Keys.RESULTS);

                jsonObject.put(Pagination.PAGINATION, pagination);
                jsonObject.put(Keys.RESULTS, data);
            } catch (final Exception e) {
                LOGGER.log(Level.SEVERE, "Gets data failed", e);

                jsonObject.put(Keys.STATUS_CODE, HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
                jsonObject.put(Keys.MSG, "Gets data failed[errorMsg=" + e.getMessage() + "]");
            } finally {
                repository.setCacheEnabled(cacheEnabled);
            }
        }
    View Full Code Here

    Examples of org.beangle.packagekit.Repository

      }

      public void before() {
        status = TaskStatus.START;
        if (getAction() == UpdateAction.INSTALL || getAction() == UpdateAction.UPDATE) {
          Repository repository = resource.getRepository();
          if (null != repository) {
            Wagon wagon = WagonFactory.getWagon(repository.getProtocal());
            wagon.transfer(repository.getLocation(resource), cacheDir + "/"
                + resource.getPackageName());
          }
        }
      }
    View Full Code Here

    Examples of org.dru.clay.respository.Repository

        // URI base = new URI("file:///home/erikb/dev/source/ivy-cache/");
        // Transport transport = new FileSystemTransport(FileSystemOptions.CreateDirectories);

        URI base = new URI("http://ivy.dev.midasplayer.com/repository/");
        Transport transport = new HttpTransport();
        Repository repository = new IvyRepository(base, ivyPattern, artifactPattern);

        CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File("repo"), repository, transport);

        Group group = new Group("king");
    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.