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.eclipse.egit.github.core.Repository

            return tag;
        }

        @Override
        public Repository getRepository(final String owner, final String name) throws IOException {
            Repository repository = new Repository();
            repository.setName(name);
            return repository;
        }
    View Full Code Here

    Examples of org.eclipse.jgit.lib.Repository

         *      added to the {@code transformer}; otherwise, {@code false}.
         */
        public static boolean addCommitProperties(Transformer transformer, File baseDir, int abbrevLen, Log log) {
            try {
                RepositoryBuilder builder = new RepositoryBuilder();
                Repository repository = builder.findGitDir(baseDir).readEnvironment().build();
                ObjectId objectId = repository.resolve(Constants.HEAD);
                if (objectId != null) {
                    transformer.setParameter("repository.commit", objectId.getName());
                    transformer.setParameter("repository.commit.short", objectId.abbreviate(abbrevLen).name());
                    return true;
                } else {
    View Full Code Here

    Examples of org.elasticsearch.repositories.Repository

         * @param listener restore listener
         */
        public void restoreSnapshot(final RestoreRequest request, final RestoreSnapshotListener listener) {
            try {
                // Read snapshot info and metadata from the repository
                Repository repository = repositoriesService.repository(request.repository());
                final SnapshotId snapshotId = new SnapshotId(request.repository(), request.name());
                final Snapshot snapshot = repository.readSnapshot(snapshotId);
                ImmutableList<String> filteredIndices = SnapshotUtils.filterIndices(snapshot.indices(), request.indices(), request.indicesOptions());
                final MetaData metaData = repository.readSnapshotMetaData(snapshotId, filteredIndices);

                // Make sure that we can restore from this snapshot
                validateSnapshotRestorable(snapshotId, snapshot);

                // Find list of indices that we need to restore
    View Full Code Here

    Examples of org.ethereum.facade.Repository

        }


        public List<String> runTestCase(TestCase testCase) {

          Repository repository = new RepositoryImpl();
         
          try {
            System.out.println("\nRunning test case: " + testCase.getName());
              List<String> results = new ArrayList<>();
             
              System.out.println("--------- PRE ---------");
              /* 1. Store pre-exist accounts - Pre */
              for (ByteArrayWrapper key : testCase.getPre().keySet()) {
     
                  AccountState accountState = testCase.getPre().get(key);
     
                  repository.createAccount(key.getData());
                  repository.saveCode(key.getData(), accountState.getCode());
                  repository.addBalance(key.getData(), new BigInteger(accountState.getBalance()));
     
                  for (long i = 0; i < accountState.getNonceLong(); ++i)
                      repository.increaseNonce(key.getData());
              }
     
              /* 2. Create ProgramInvoke - Env/Exec */
              Env  env  = testCase.getEnv();
              Exec exec = testCase.getExec();
     
              byte[] address     = exec.getAddress();
              byte[] origin      = exec.getOrigin();
              byte[] caller      = exec.getCaller();
              byte[] balance     = ByteUtil.bigIntegerToBytes(repository.getBalance(exec.getAddress()));
              byte[] gasPrice    = exec.getGasPrice();
              byte[] gas         = exec.getGas();
              byte[] callValue   = exec.getValue();
              byte[] msgData     = exec.getData();
              byte[] lastHash    = env.getPreviousHash();
              byte[] coinbase    = env.getCurrentCoinbase();
              long timestamp     = new BigInteger(env.getCurrentTimestamp()).longValue();
              long number        = new BigInteger(env.getCurrentNumber()).longValue();
              byte[] difficulty  = env.getCurrentDifficlty();
              long gaslimit      = new BigInteger(env.getCurrentGasLimit()).longValue();
     
              // Origin and caller need to exist in order to be able to execute
              if(repository.getAccountState(origin) == null)
                repository.createAccount(origin);
              if(repository.getAccountState(caller) == null)
                repository.createAccount(caller);
             
              ProgramInvoke programInvoke = new ProgramInvokeImpl(address, origin, caller, balance,
                      gasPrice, gas, callValue, msgData, lastHash, coinbase,
                      timestamp, number, difficulty, gaslimit, repository, true);
     
              /* 3. Create Program - exec.code */
              /* 4. run VM */
              VM vm = new VM();
              Program program = new Program(exec.getCode(), programInvoke);
              vm.play(program);

                program.saveProgramTraceToFile(testCase.getName());

                this.trace = program.getProgramTrace();
     
              System.out.println("--------- POST --------");
              /* 5. Assert Post values */
              for (ByteArrayWrapper key : testCase.getPost().keySet()) {
     
                  AccountState accountState = testCase.getPost().get(key);
     
                  long       expectedNonce     = accountState.getNonceLong();
                  BigInteger expectedBalance   = accountState.getBigIntegerBalance();
                  byte[]     expectedCode      = accountState.getCode();
     
                  boolean accountExist = (null != repository.getAccountState(key.getData()));
                  if (!accountExist) {
     
                      String output =
                              String.format("The expected account does not exist. key: [ %s ]",
                                      Hex.toHexString(key.getData()));
                      logger.info(output);
                      results.add(output);
                      continue;
                  }
     
                  long       actualNonce   = repository.getNonce(key.getData()).longValue();
                  BigInteger actualBalance = repository.getBalance(key.getData());
                  byte[]     actualCode    = repository.getCode(key.getData());
                  if (actualCode == null) actualCode = "".getBytes();
     
                  if (expectedNonce != actualNonce) {
     
                      String output =
                              String.format("The nonce result is different. key: [ %s ],  expectedNonce: [ %d ] is actualNonce: [ %d ] ",
                                      Hex.toHexString(key.getData()), expectedNonce, actualNonce);
                      logger.info(output);
                      results.add(output);
                  }
     
                  if (!expectedBalance.equals(actualBalance)) {
     
                      String output =
                              String.format("The balance result is different. key: [ %s ],  expectedBalance: [ %s ] is actualBalance: [ %s ] ",
                                      Hex.toHexString(key.getData()), expectedBalance.toString(), actualBalance.toString());
                      logger.info(output);
                      results.add(output);
                  }
     
                  if (!Arrays.equals(expectedCode, actualCode)) {
     
                      String output =
                              String.format("The code result is different. account: [ %s ],  expectedCode: [ %s ] is actualCode: [ %s ] ",
                                      Hex.toHexString(key.getData()),
                                      Hex.toHexString(expectedCode),
                                      Hex.toHexString(actualCode));
                      logger.info(output);
                      results.add(output);
                  }
     
                  // assert storage
                  Map<ByteArrayWrapper, ByteArrayWrapper> storage = accountState.getStorage();
                  for (ByteArrayWrapper storageKey : storage.keySet()) {
     
                      byte[] expectedStValue = storage.get(storageKey).getData();
     
                      ContractDetails contractDetails =
                              program.getResult().getRepository().getContractDetails(accountState.getAddress());
     
                      if (contractDetails == null) {
     
                          String output =
                                  String.format("Storage raw doesn't exist: key [ %s ], expectedValue: [ %s ]",
                                          Hex.toHexString(storageKey.getData()),
                                          Hex.toHexString(expectedStValue)
                                  );
                          logger.info(output);
                          results.add(output);
                          continue;
                      }
     
                      Map<DataWord, DataWord>  testStorage = contractDetails.getStorage();
                      DataWord actualValue = testStorage.get(new DataWord(storageKey.getData()));

                      if (actualValue == null ||
                            !Arrays.equals(expectedStValue, actualValue.getNoLeadZeroesData())) {
     
                          String output =
                                  String.format("Storage value different: key [ %s ], expectedValue: [ %s ], actualValue: [ %s ]",
                                          Hex.toHexString(storageKey.getData()),
                                          Hex.toHexString(expectedStValue),
                                          actualValue == null ? "" :   Hex.toHexString(actualValue.getNoLeadZeroesData()));
                          logger.info(output);
                          results.add(output);
                      }
                  }
              }
     
              // TODO: assert that you have no extra accounts in the repository
              // TODO:  -> basically the deleted by suicide should be deleted
              // TODO:  -> and no unexpected created
     
              List<org.ethereum.vm.CallCreate> resultCallCreates  =
                      program.getResult().getCallCreateList();
     
              // assert call creates
              for (int i = 0; i < testCase.getCallCreateList().size(); ++i) {
     
                  org.ethereum.vm.CallCreate resultCallCreate = null;
                  if (resultCallCreates != null && resultCallCreates.size() > i) {
                      resultCallCreate = resultCallCreates.get(i);
                  }
     
                  CallCreate expectedCallCreate = testCase.getCallCreateList().get(i);
     
                  if (resultCallCreate == null && expectedCallCreate != null) {
     
                      String output =
                              String.format("Missing call/create invoke: to: [ %s ], data: [ %s ], gas: [ %s ], value: [ %s ]",
                                      Hex.toHexString(expectedCallCreate.getDestination()),
                                      Hex.toHexString(expectedCallCreate.getData()),
                                      Hex.toHexString(expectedCallCreate.getGasLimit()),
                                      Hex.toHexString(expectedCallCreate.getValue()));
                      logger.info(output);
                      results.add(output);
     
                      continue;
                  }
     
                  boolean assertDestination = Arrays.equals(
                      expectedCallCreate.getDestination(),
                          resultCallCreate.getDestination());
                  if (!assertDestination) {
     
                      String output =
                              String.format("Call/Create destination is different. Expected: [ %s ], result: [ %s ]",
                                      Hex.toHexString(expectedCallCreate.getDestination()),
                                      Hex.toHexString(resultCallCreate.getDestination()));
                      logger.info(output);
                      results.add(output);
                  }
     
                  boolean assertData = Arrays.equals(
                      expectedCallCreate.getData(),
                          resultCallCreate.getData());
                  if (!assertData) {
     
                      String output =
                              String.format("Call/Create data is different. Expected: [ %s ], result: [ %s ]",
                                      Hex.toHexString(expectedCallCreate.getData()),
                                      Hex.toHexString(resultCallCreate.getData()));
                      logger.info(output);
                      results.add(output);
                  }
     
                  boolean assertGasLimit = Arrays.equals(
                      expectedCallCreate.getGasLimit(),
                          resultCallCreate.getGasLimit());
                  if (!assertGasLimit) {
                      String output =
                              String.format("Call/Create gasLimit is different. Expected: [ %s ], result: [ %s ]",
                                      Hex.toHexString(expectedCallCreate.getGasLimit()),
                                      Hex.toHexString(resultCallCreate.getGasLimit()));
                      logger.info(output);
                      results.add(output);
                  }
     
                  boolean assertValue = Arrays.equals(
                      expectedCallCreate.getValue(),
                          resultCallCreate.getValue());
                  if (!assertValue) {
                      String output =
                              String.format("Call/Create value is different. Expected: [ %s ], result: [ %s ]",
                                      Hex.toHexString(expectedCallCreate.getValue()),
                                      Hex.toHexString(resultCallCreate.getValue()));
                      logger.info(output);
                      results.add(output);
                  }
              }
     
              // assert out
              byte[] expectedHReturn = testCase.getOut();
              byte[] actualHReturn = ByteUtil.EMPTY_BYTE_ARRAY;
              if (program.getResult().getHReturn() != null) {
                  actualHReturn = program.getResult().getHReturn().array();
              }
     
              if (!Arrays.equals(expectedHReturn, actualHReturn)) {
     
                  String output =
                          String.format("HReturn is different. Expected hReturn: [ %s ], actual hReturn: [ %s ]",
                                  Hex.toHexString(expectedHReturn),
                                  Hex.toHexString(actualHReturn));
                  logger.info(output);
                  results.add(output);
              }
     
              // assert gas
              BigInteger expectedGas = new BigInteger(testCase.getGas());
              BigInteger actualGas = new BigInteger(gas).subtract(BigInteger.valueOf(program.getResult().getGasUsed()));
     
              if (!expectedGas.equals(actualGas)) {
     
                  String output =
                          String.format("Gas remaining is different. Expected gas remaining: [ %s ], actual gas remaining: [ %s ]",
                                  expectedGas.toString() ,
                                  actualGas.toString());
                  logger.info(output);
                  results.add(output);
              }
              return results;
          } finally {
            repository.close();
          }
        }
    View Full Code Here

    Examples of org.expath.pkg.repo.Repository

        public final static String EXPATH_REPO_DEFAULT = "webapp/WEB-INF/" + EXPATH_REPO_DIR;

        public final static Logger LOG = Logger.getLogger(ExistRepository.class);

        public ExistRepository(FileSystemStorage storage) throws PackageException {
            myParent = new Repository(storage);
            myParent.registerExtension(new ExistPkgExtension());
        }
    View Full Code Here

    Examples of org.folg.gedcom.model.Repository

        assertEquals(gedcom.getRepositories().size(), 7);
      }

      @Test
      public void testToOrganization1() throws Exception {
        Repository dqRepository = gedcom.getRepositories().get(0);
        TestConversionResult result = new TestConversionResult();
        SourceDescriptionMapper mapper = new SourceDescriptionMapper();

        mapper.toOrganization(dqRepository, result);
        assertNotNull(result.getOrganizations());
    View Full Code Here

    Examples of org.geotools.data.Repository

                GeneralizationInfosProvider provider = (GeneralizationInfosProvider) providerClass
                        .newInstance();
                GeneralizationInfos gInfos = provider.getGeneralizationInfos(providerParam);

                Class repositoryClass = Class.forName(repositoryClassName);
                Repository repository = (Repository) repositoryClass.newInstance();

                return new PreGeneralizedDataStore(gInfos, repository, namespace);
            } catch (Exception ex) {
                throw new IOException(ex.getMessage());
            }
    View Full Code Here

    Examples of org.guvnor.common.services.project.model.Repository

        public Path create( final Path projectRoot,
                            final String baseURL,
                            final POM pomModel ) {
            org.uberfire.java.nio.file.Path pathToPOMXML = null;
            try {
                final Repository repository = new Repository();
                repository.setId( "guvnor-m2-repo" );
                repository.setName( "Guvnor M2 Repo" );
                repository.setUrl( m2RepoService.getRepositoryURL( baseURL ) );
                pomModel.addRepository( repository );

                final org.uberfire.java.nio.file.Path nioRoot = Paths.convert( projectRoot );
                pathToPOMXML = nioRoot.resolve( "pom.xml" );
    View Full Code Here

    Examples of org.guvnor.structure.repositories.Repository

        private ConfigurationFactory configurationFactory;

        @PostConstruct
        public void onStartup() {
            try {
                Repository jbpmRepo = repositoryService.getRepository( JBPM_REPO_PLAYGROUND );
                if ( jbpmRepo == null ) {
                    jbpmRepo = repositoryService.createRepository( "git",
                                                                   JBPM_REPO_PLAYGROUND,
                                                                   new HashMap<String, Object>() {{
                                                                       put( "origin", JBPM_URL );
    View Full Code Here

    Examples of org.infoglue.cms.entities.management.Repository

          Collection repositoryLanguages = language.getRepositoryLanguages();
          Iterator iterator = repositoryLanguages.iterator();
          while(iterator.hasNext())
          {
            RepositoryLanguage repositoryLanguage = (RepositoryLanguage)iterator.next();
            Repository repository = repositoryLanguage.getRepository();
            repository.getRepositoryLanguages().remove(repositoryLanguage);
            db.remove(repositoryLanguage);
          }
        }
        catch(Exception 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.