Examples of timestamp()


Examples of ch.ethz.iks.r_osgi.messages.TimeOffsetMessage.timestamp()

    if (timeOffset == null) {
      // if unknown, perform a initial offset measurement round of 4
      // messages
      TimeOffsetMessage timeMsg = new TimeOffsetMessage();
      for (int i = 0; i < 4; i++) {
        timeMsg.timestamp();
        timeMsg = (TimeOffsetMessage) sendAndWait(timeMsg);
      }
      timeOffset = new TimeOffset(timeMsg.getTimeSeries());
    } else if (timeOffset.isExpired()) {
      // if offset has expired, start a new measurement round
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAuditEvent.timeStamp()

  assertTrue(auditEvents.size()==4);
  SortedMap sorted = new TreeMap ();
  for (Iterator i = auditEvents.iterator(); i.hasNext();) {
      WfAuditEvent ae = (WfAuditEvent)i.next ();
      sorted.put (ae.timeStamp(), ae);
  }

  for (Iterator i = sorted.values().iterator(); i.hasNext();) {
      Object o = i.next();
      if (o instanceof WfCreateProcessAuditEvent) {
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAuditEvent.timeStamp()

  for (Iterator i = auditEvents.iterator(); i.hasNext();) {
      Object o = i.next();
      WfAuditEvent ae = (WfAuditEvent)o;
      System.err.println(" --------------------- ");
      System.err.println(" event type = " + ae.eventType());
      System.err.println(" time stamp = " + ae.timeStamp());
      System.err.println(" activity key = " + ae.activityKey());
      System.err.println(" activity name = " + ae.activityName());
      System.err.println(" process key = " + ae.processKey());
      System.err.println(" process name = " + ae.processName());
      System.err.println(" process manager name = "
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAuditEvent.timeStamp()

                continue;
            }
           
            SOAPElement eventNode
                = historyNode.addChildElement("Event", Consts.ASAP_PREFIX);
            Date date = event.timeStamp();
            SOAPElement timeNode
                = eventNode.addChildElement("Time", Consts.ASAP_PREFIX);
            timeNode.addTextNode(XMLUtil.toXsdGMTDateTime(date));
            SOAPElement type
                = eventNode.addChildElement("EventType", Consts.ASAP_PREFIX);
View Full Code Here

Examples of edu.ucla.sspace.text.TemporalDocument.timeStamp()

                        // remain
                        while (docIter.hasNext()) {
                           
                            TemporalDocument doc = docIter.next();
                            int docNumber = count.incrementAndGet();
                            long docTime = doc.timeStamp();

                            // special case for first document
                            if (docNumber == 1) {
                                curSSpaceStartTime.set(docTime);
                                startBarrier.set(true);
View Full Code Here

Examples of er.neo4jadaptor.test.eo.FirstEntity.timestamp()

    fetchedRow = results.get(0);
   
    assertEquals(row.text(), fetchedRow.text());
    assertEquals(row.bool(), fetchedRow.bool());
    assertEquals(row.number(), fetchedRow.number());
    assertEquals(row.timestamp(), fetchedRow.timestamp());
   
  }
 
  public void test02_update() {
    FirstEntity row = ERXEOControlUtilities.createAndInsertObject(ec, FirstEntity.class);
View Full Code Here

Examples of java.util.UUID.timestamp()

            // check versions at every step along the way to make sure migrations are not applied out of order.
            Collection<Column> cols = MigrationManager.makeColumns(message);
            for (Column col : cols)
            {
                final UUID version = UUIDGen.getUUID(col.name());
                if (version.timestamp() > DatabaseDescriptor.getDefsVersion().timestamp())
                {
                    final Migration m = Migration.deserialize(col.value());
                    assert m.getVersion().equals(version);
                    StageManager.getStage(Stage.MIGRATION).submit(new WrappedRunnable()
                    {
View Full Code Here

Examples of java.util.UUID.timestamp()

                    {
                        @Override
                        protected void runMayThrow() throws Exception
                        {
                            // check to make sure the current version is before this one.
                            if (DatabaseDescriptor.getDefsVersion().timestamp() == version.timestamp())
                                logger.debug("Not appling (equal) " + version.toString());
                            else if (DatabaseDescriptor.getDefsVersion().timestamp() > version.timestamp())
                                logger.debug("Not applying (before)" + version.toString());
                            else
                            {
View Full Code Here

Examples of java.util.UUID.timestamp()

                        protected void runMayThrow() throws Exception
                        {
                            // check to make sure the current version is before this one.
                            if (DatabaseDescriptor.getDefsVersion().timestamp() == version.timestamp())
                                logger.debug("Not appling (equal) " + version.toString());
                            else if (DatabaseDescriptor.getDefsVersion().timestamp() > version.timestamp())
                                logger.debug("Not applying (before)" + version.toString());
                            else
                            {
                                logger.debug("Applying {} from {}", m.getClass().getSimpleName(), message.getFrom());
                                try
View Full Code Here

Examples of java.util.UUID.timestamp()

        // check to see if CL.recovery modified the lastMigrationId. if it did, we need to re apply migrations. this isn't
        // the same as merely reloading the schema (which wouldn't perform file deletion after a DROP). The solution
        // is to read those migrations from disk and apply them.
        UUID currentMigration = DatabaseDescriptor.getDefsVersion();
        UUID lastMigration = Migration.getLastMigrationId();
        if ((lastMigration != null) && (lastMigration.timestamp() > currentMigration.timestamp()))
        {
            Gossiper.instance.maybeInitializeLocalState(SystemTable.incrementAndGetGeneration());
            MigrationManager.applyMigrations(currentMigration, lastMigration);
        }
       
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.