Examples of Storage


Examples of com.google.gwt.storage.client.Storage

        return content;
    }

    @Override
    public void show() {
        Storage storage = Storage.getLocalStorageIfSupported();
        if (storage == null) {
            return;
        }
        setScrollLock(VDebugWindow.readState(storage, "log-scrollLock", false));
    }
View Full Code Here

Examples of com.griddynamics.java.benchmarks.model.Storage

*/
public class TestEntityCreator {

    @Test(timeout=1000)
    public void testCreation() throws Exception {
        Storage storageMock = mock(Storage.class);
        final Group groupMock = mock(Group.class);
        when(groupMock.getMaxObjectsCount()).thenReturn(1);
        when(groupMock.getObjectsCount()).thenReturn(0);
        when(groupMock.getObjectSize()).thenReturn(1);
        when(groupMock.getStorage()).thenReturn(storageMock);
View Full Code Here

Examples of com.kellerkindt.scs.internals.Storage

    try {
      int   ver   = Integer.parseInt(version);
      UUID  id    = ver >= 6 ? UUID.fromString(uuid) : UUID.randomUUID();
     
      // Add the storage
      Storage  storage  = new Storage(Integer.parseInt(version), id);
     
      // set for storage
      this.currentIsNoStorage--;
     
      // set storage
View Full Code Here

Examples of com.trustyoram.web.storage.config.Storage

  {
    super();
   
    String s;
    int i;
    Storage storage;
    Category category;
   
    this.categories = new ArrayList<Category>();
   
    if ((storages == null) || (storages.size() == 0))
      return;
   
    Collections.sort(storages, new CompareStorage());
    s = null;
    category = null;
   
    for (i = 0; i < storages.size(); i++)
    {
      storage = storages.get(i);
     
      if ((s == null) || (!s.equals(storage.getCategory())))
      {
        if (category != null)
          category.sort();
       
        s = storage.getCategory();
        category = new Category();
       
        categories.add(category);
      }
       
View Full Code Here

Examples of de.flapdoodle.embed.mongo.config.Storage

            }
            savePortToProjectProperties();

            IMongodConfig config = new MongodConfigBuilder()
                    .version(getVersion()).net(new Net(bindIp, port, Network.localhostIsIPv6()))
                    .replication(new Storage(getDataDirectory(), null, 0))
                    .build();

            executable = MongodStarter.getInstance(runtimeConfig).prepare(config);
        } catch (UnknownHostException e) {
            throw new MojoExecutionException("Unable to determine if localhost is ipv6", e);
View Full Code Here

Examples of de.laures.cewolf.Storage

  public int doStartTag() throws JspException
  {
    final ChartHolder chartHolder = PageUtils.getChartHolder(chartId, pageContext);
    this.chartImageDefinition = new ChartImageDefinition(chartHolder, width, height, ChartImage.IMG_TYPE_CHART, mimeType, timeout);
    Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
    try
    {
      this.sessionKey = storage.storeChartImage(chartImageDefinition, pageContext);
    }
    catch (CewolfException cwex)
    {
      throw new JspException(cwex.getMessage());
    }
View Full Code Here

Examples of de.laures.cewolf.Storage

          log.error("ChartImgTag.doEndTag: "+ioex.getMessage());
            throw new JspException(ioex.getMessage());
        }

    try {
      Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
      storage.removeChartImage(sessionKey, (HttpServletRequest) pageContext.getRequest());
    } catch (CewolfException cwex) {
      throw new JspException(cwex.getMessage());
    }

      return doAfterEndTag(EVAL_PAGE);
View Full Code Here

Examples of de.uniluebeck.itm.tcpip.Storage

   
    dos.writeInt(totalLen);


    for (Command cmd : commands) {
      Storage s = new Storage();
      cmd.writeRawTo(s);
      writeStorage(s, dos, checksum);
    }

//    if (log.isDebugEnabled())
View Full Code Here

Examples of gov.nysenate.openleg.util.Storage

    }

    public HashMap<String, Change> ingestFiles(Collection<File> files)
    {
        Timer timer = new Timer();
        Storage storage = new Storage(getStorageDirectory());
        BillProcessor billProcessor = new BillProcessor();
        CalendarProcessor calendarProcessor = new CalendarProcessor();
        AgendaProcessor agendaProcessor = new AgendaProcessor();
        TranscriptProcessor transcriptProcessor = new TranscriptProcessor();

        Collections.sort((List<File>)files, new FileNameComparator());

        // Process each file individually, flushing changes to storage as necessary
        // Each file processor should produce a change log indicating what happened
        timer.start();
        for(File file : files) {
            try {
                logger.debug("Ingesting: "+file);
                String type = file.getParentFile().getName();
                if (type.equals("bills")) {
                    billProcessor.process(file, storage);
                }
                else if (type.equals("calendars")) {
                    calendarProcessor.process(file, storage);
                }
                else if (type.equals("agendas")) {
                    agendaProcessor.process(file, storage);
                }
                else if (type.equals("annotations")) {
                    continue;
                }
                else if (type.equals("transcripts")) {
                    transcriptProcessor.process(file, storage);
                }

                // To avoid memory issues, occasionally flush changes to file-system and truncate memory
                if (storage.memory.size() > 4000) {
                    storage.flush();
                    storage.clear();
                }

            }
            catch (IOException e) {
                logger.error("Issue with "+file.getName(), e);
            }
            catch (UnmarshalException e) {
                logger.error("Issue with "+file.getName(), e);
            }
            catch (JAXBException e) {
                logger.error("Unable to parse xml "+file.getName(), e);
            }
        }
        storage.flush();
        logger.info(timer.stop()+" seconds to injest "+files.size()+" files.");
        return ChangeLogger.getChangeLog();
    }
View Full Code Here

Examples of js.lang.builtin.Storage

@Ignore
public class EmulateStorageTest {

    @Test
    public void storage() throws Exception {
        Storage storage = Global.localStorage;
        assert storage.length() == 0;
        assert storage.getItem("1") == null;

        storage.setItem("1", "one");
        assert storage.length() == 1;
        assert storage.getItem("1").equals("one");

        storage.removeItem("1");
        assert storage.length() == 0;
        assert storage.getItem("1") == null;
    }
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.