Examples of snapshot()


Examples of javafx.scene.text.Text.snapshot()

  private PlotNode buildNode(String labelText, double x, double y, boolean inlined, boolean compiled)
  {
    Text text = new Text(labelText);

    text.snapshot(null, null);

    double textWidth = text.getLayoutBounds().getWidth();
    double textHeight = text.getLayoutBounds().getHeight();

    double rectWidth = textWidth + 20;
View Full Code Here

Examples of jersey.repackaged.com.google.common.cache.AbstractCache.SimpleStatsCounter.snapshot()

      SimpleStatsCounter aggregator = new SimpleStatsCounter();
      aggregator.incrementBy(localCache.globalStatsCounter);
      for (Segment<K, V> segment : localCache.segments) {
        aggregator.incrementBy(segment.statsCounter);
      }
      return aggregator.snapshot();
    }

    @Override
    public void cleanUp() {
      localCache.cleanUp();
View Full Code Here

Examples of net.grinder.statistics.StatisticsSet.snapshot()

    singleConsole.setSampleModel(sampleModelMock);
    StatisticExpression exp = mock(StatisticExpression.class);
    StatisticsSet statisticMock = mock(StatisticsSet.class);
    StatisticsSet statisticAccumulatedMock = mock(StatisticsSet.class);
    when(statisticMock.snapshot()).thenReturn(statisticMock);
    when(statisticAccumulatedMock.snapshot()).thenReturn(statisticAccumulatedMock);
    when(exp.getDoubleValue(any(StatisticsSet.class))).thenReturn(3D);
    when(sampleModelMock.getTPSExpression()).thenReturn(exp);

    singleConsole.update(statisticMock, statisticAccumulatedMock);
    singleConsole.update(statisticMock, statisticAccumulatedMock);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.log.LogManager.StreamManager.snapshot()

    reader.execute(snapshotLogEntry);

    control.replay();

    StreamManager streamManager = new StreamManager(stream, true, NO_FRAMES_EVER_SIZE);
    streamManager.snapshot(snapshot);
    streamManager.readFromBeginning(reader);
  }

  private Snapshot createSnapshot() {
    return new Snapshot()
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.snapshot()

        CFMetaData.purge(cfm);
        DatabaseDescriptor.setTableDefinition(ksm, newVersion);

        if (!clientMode)
        {
            cfs.snapshot(Table.getTimestampedSnapshotName(null));

            CompactionManager.instance.getCompactionLock().lock();
            cfs.flushLock.lock();
            try
            {
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.snapshot()

            {
                ColumnFamilyStore cfs = Table.open(ksm.name).getColumnFamilyStore(cfm.cfName);
                CFMetaData.purge(cfm);
                if (!clientMode)
                {
                    cfs.snapshot(snapshotName);
                    cfs.flushLock.lock();
                    try
                    {
                        Table.open(ksm.name).dropCf(cfm.cfId);
                    }
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.snapshot()

            Schema.instance.purge(cfm);

            if (!StorageService.instance.isClientMode())
            {
                cfs.snapshot(snapshotName);
                Table.open(ksm.name).dropCf(cfm.cfId);
            }
        }

        if (withSchemaRecord)
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.snapshot()

        if (withSchemaRecord)
            cfm.dropFromSchema(timestamp).apply();

        if (!StorageService.instance.isClientMode())
        {
            cfs.snapshot(Table.getTimestampedSnapshotName(cfs.columnFamily));
            Table.open(ksm.name).dropCf(cfm.cfId);
        }
    }

    private static KSMetaData makeNewKeyspaceDefinition(KSMetaData ksm, CFMetaData toExclude)
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.snapshot()

            {
                ColumnFamilyStore cfs = Table.open(ksm.name, schema).getColumnFamilyStore(cfm.cfName);
                schema.purge(cfm);
                if (!StorageService.instance.isClientMode())
                {
                    cfs.snapshot(snapshotName);
                    cfs.flushLock.lock();
                    try
                    {
                        Table.open(ksm.name, schema).dropCf(cfm.cfId);
                    }
View Full Code Here

Examples of org.apache.cassandra.db.Keyspace.snapshot()

        Keyspace keyspace = getValidKeyspace(keyspaceName);
        if (keyspace.snapshotExists(tag))
            throw new IOException("Snapshot " + tag + " already exists.");

        keyspace.snapshot(tag, columnFamilyName);
    }

    private Keyspace getValidKeyspace(String keyspaceName) throws IOException
    {
        if (!Schema.instance.getKeyspaces().contains(keyspaceName))
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.