Examples of reset()


Examples of com.linkedin.helix.manager.file.FileCallbackHandler.reset()

                                   ChangeType.CONTROLLER);
    AssertJUnit.assertEquals(handler.getEventTypes(), eventTypes);
    AssertJUnit.assertTrue(listener.isControllerChangeListenerInvoked);
   
    listener.reset();
    handler.reset();
    AssertJUnit.assertTrue(listener.isControllerChangeListenerInvoked);

    listener.reset();
    handler.onPropertyChange(rootNamespace);
    AssertJUnit.assertTrue(listener.isControllerChangeListenerInvoked);
View Full Code Here

Examples of com.linkedin.helix.monitoring.StatCollector.reset()

    AssertJUnit.assertEquals((long)collector.getTotalSum(), 4950000);
    AssertJUnit.assertEquals((long)collector.getPercentile(40), 39400);
    AssertJUnit.assertEquals((long)collector.getMean(), 49500);
    AssertJUnit.assertEquals((long)collector.getMin(), 0);
   
    collector.reset();
   
    AssertJUnit.assertEquals(collector.getNumDataPoints(), 0);
    AssertJUnit.assertEquals((long)collector.getMax(), 0);
    AssertJUnit.assertEquals((long)collector.getTotalSum(), 0);
    AssertJUnit.assertEquals((long)collector.getPercentile(40), 0);
View Full Code Here

Examples of com.linkedin.helix.participant.statemachine.StateModel.reset()

        }

        for (String resourceKey : modelMap.keySet())
        {
          StateModel stateModel = modelMap.get(resourceKey);
          stateModel.reset();
          String initialState = _stateModelParser.getInitialState(stateModel.getClass());
          stateModel.updateState(initialState);
          // TODO probably should update the state on ZK. Shi confirm what needs
          // to be done here.
        }
View Full Code Here

Examples of com.linkedin.r2.testutils.filter.MessageCountFilter.reset()

    final FilterChain fc = FilterChains.create(filter);

    fireRpcRequest(fc);
    assertMessageCounts(1, 0, 0, filter);

    filter.reset();
    assertMessageCounts(0, 0, 0, filter);

    fireRestRequest(fc);
    assertMessageCounts(1, 0, 0, filter);
  }
View Full Code Here

Examples of com.maverick.crypto.digests.Hash.reset()

            a1 = tmp3.toString();
        } else if (!algorithm.equals("MD5")) { //$NON-NLS-1$

        }

        hash.reset();
        hash.putBytes(a1.getBytes("US-ASCII")); //$NON-NLS-1$
        String md5a1 = encode(hash.doFinal());

        String a2 = null;
        if (qopVariant == QOP_AUTH_INT) {
View Full Code Here

Examples of com.maverick.crypto.digests.MD5Digest.reset()

            ByteArrayOutputStream out = new ByteArrayOutputStream();

            String[] mixers = new String[] { "A", "BB", "CCC" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

            for (int i = 0; i < mixers.length; i++) {
                md5.reset();
                sha1.reset();
                sha1.update(mixers[i].getBytes(), 0, mixers[i].getBytes().length);
                sha1.update(premasterSecret, 0, premasterSecret.length);
                sha1.update(clientRandom, 0, clientRandom.length);
                sha1.update(serverRandom, 0, serverRandom.length);
View Full Code Here

Examples of com.maverick.crypto.digests.SHA1Digest.reset()

            String[] mixers = new String[] { "A", "BB", "CCC" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

            for (int i = 0; i < mixers.length; i++) {
                md5.reset();
                sha1.reset();
                sha1.update(mixers[i].getBytes(), 0, mixers[i].getBytes().length);
                sha1.update(premasterSecret, 0, premasterSecret.length);
                sha1.update(clientRandom, 0, clientRandom.length);
                sha1.update(serverRandom, 0, serverRandom.length);
View Full Code Here

Examples of com.mobixess.jodb.core.index.IndexingRecord.reset()

        {
            IndexingRecord indexingRecord = super.pull();
            if(indexingRecord == null){
                indexingRecord = new IndexingRecord();
            }
            indexingRecord.reset();
            return indexingRecord;
        }
    }
   
    private static class  WeakRefDataContainerCache <ContainerType> {
View Full Code Here

Examples of com.mobixess.jodb.core.io.ObjectDataContainer.reset()

            if(objectBodyLength > existingObjectHeaderData.getBodyLength() || fieldsWithRelativeAddr.size() > 0 ){
                if( existingObjectHeaderData.isRedirection() ){
                    //redirection entry space is too small, let see what is under redirection offset
                    //ioTicket.getRandomAccessBuffer().seek(existingObjectHeaderData.getRedirectionOffset());
                    long existingObjectRedirectionOffset = existingObjectHeaderData.getRedirectionOffset();
                    existingObjectHeaderData.reset();
                    existingObjectHeaderData.readHeader(ioTicket.getRandomAccessBuffer(), existingObjectRedirectionOffset, true);
                    //JODBIOUtils.readObjectHeader(ioTicket, existingObjectHeaderData, true);
                }
            }
View Full Code Here

Examples of com.mobixess.jodb.core.io.ObjectDataContainer.FieldsIterator.reset()

            for (int i = 0; i < totalConstraints; i++) {
                _constraints.elementAt(i).evaluatePersistentCopy(classDescriptor, dataContainer, primitiveRecord, context);
                if(dataContainer!=null && i < totalConstraints){
                    FieldsIterator fieldsIterator = dataContainer.getActiveFieldsIterator();
                    if(fieldsIterator != null){
                        fieldsIterator.reset();
                    }
                }
            }
            if(JODBConfig.useCacheOnSortOperations()){
                processSortValuesCache(dataContainer, primitiveRecord, context);
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.