congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ArchiveDetails.getTimestamp
Code IndexAdd Tabnine to your IDE (free)

How to use
getTimestamp
method
in
org.ccsds.moims.mo.com.archive.structures.ArchiveDetails

Best Java code snippets using org.ccsds.moims.mo.com.archive.structures.ArchiveDetails.getTimestamp (Showing top 10 results out of 315)

origin: int.esa.nmf.core.moservices.impl/ccsds-com

/**
 * Checks if the archiveDetails structure contains a null value in any of
 * the following fields: network, timestamp or provider
 *
 * @param archiveDetails The archive details object to be checked.
 * @return The boolean value of the comparison
 */
public static Boolean archiveDetailsContainsNull(ArchiveDetails archiveDetails) {
  // Check if null
  return archiveDetails.getNetwork().getValue() == null
      || archiveDetails.getTimestamp() == null
      || archiveDetails.getProvider().getValue() == null;
}
origin: int.esa.nmf.core.moservices.impl/ccsds-com

/**
 * Checks if the archiveDetails structure contains a wildcard in any of the
 * following fields: network, timestamp or provider Null, "*" and 0 are
 * considered wildcards
 *
 * @param archiveDetails The archive details object to be checked.
 * @return The boolean value of the comparison
 */
public static Boolean archiveDetailsContainsWildcard(ArchiveDetails archiveDetails) {
  if (archiveDetails == null) {
    return false;
  }
  // Check for nulls
  if (archiveDetails.getNetwork() == null
      || archiveDetails.getTimestamp() == null
      || archiveDetails.getProvider() == null) {
    return true;
  }
  // Check if any of them have a wildcard
  if (archiveDetails.getNetwork().getValue().equals("*")) {
    return true;
  }
  if (archiveDetails.getTimestamp().getValue() == 0) {
    return true;
  }
  if (archiveDetails.getProvider().getValue().equals("*")) {
    return true;
  }
  return false;
}
origin: int.esa.nmf.core.moservices.impl/ccsds-com

public COMObjectStructure(final IdentifierList domain, final ObjectType objType,
    final ArchiveDetails archiveDetails, final Element object) {
  this.objType = objType;
  this.domain = domain;
  this.objId = archiveDetails.getInstId();
  this.sourceLink = archiveDetails.getDetails().getSource();
  this.relatedLink = archiveDetails.getDetails().getRelated();
  this.network = archiveDetails.getNetwork();
  this.timestamp = archiveDetails.getTimestamp();
  this.providerURI = archiveDetails.getProvider();
  this.object = object;
}
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

for (int i = 0; i < groupDefsReferencingGroupIdentity.size(); i++) {
  ArchiveDetails groupDefDetails = groupDefsReferencingGroupIdentity.get(i);
  if (groupDefDetails.getTimestamp().getValue() > latestTimestamp) {
    latestDefIndex = i;
    latestTimestamp = groupDefDetails.getTimestamp().getValue();
origin: int.esa.nmf.core.moservices.impl/ccsds-com

  public ArchivePersistenceObject(final ObjectType objectType, final IdentifierList domain,
      final Long objId, final ArchiveDetails archiveDetails, final Object object) {
    this.objectType = objectType;
    this.domainId = domain;
    this.objId = objId;

    this.providerURI = archiveDetails.getProvider().getValue();
    this.network = archiveDetails.getNetwork().getValue();
    this.timestampArchiveDetails = archiveDetails.getTimestamp().getValue();

    this.sourceLink = archiveDetails.getDetails().getSource();
    this.relatedLink = archiveDetails.getDetails().getRelated();
//        this.obj = (Element) HelperAttributes.javaType2Attribute(object);
    this.object = object;
  }
 
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

if (defArchiveDetails.getDetails().getRelated().equals(identityId)) {
  final long itemTimestamp = defArchiveDetails.getTimestamp().getValue();
  if (itemTimestamp > maxTimeStamp) {
    defId = defArchiveDetails.getInstId();
origin: int.esa.nmf.core.moservices.impl/ccsds-com

if (latestPerObj.getArchiveDetails().getTimestamp().getValue() < perObj.getArchiveDetails().getTimestamp().getValue()) {
origin: int.esa.nmf.core.moservices.impl/ccsds-com

if (latestPerObj.getArchiveDetails().getTimestamp().getValue() < perObj.getArchiveDetails().getTimestamp().getValue()) {
origin: int.esa.nmf.core.moservices.impl/ccsds-com

protected void updateEntries(final ObjectType objType, final IdentifierList domain,
    final ArchiveDetailsList lArchiveDetails, final ElementList objects, final MALInteraction interaction) {
  final int domainId = this.fastDomain.getDomainId(domain);
  final Integer objTypeId = this.fastObjectType.getObjectTypeId(objType);
  final ArrayList<COMObjectEntity> newObjs = new ArrayList<COMObjectEntity>();
  final LongList objIds = new LongList();
  // Generate the object Ids if needed and the persistence objects to be stored
  for (int i = 0; i < lArchiveDetails.size(); i++) {
    final Integer providerURIId = this.fastProviderURI.getProviderURIId(lArchiveDetails.get(i).getProvider());
    final Integer networkId = this.fastNetwork.getNetworkId(lArchiveDetails.get(i).getNetwork());
    // If there are no objects in the list, inject null...
    Object objBody = (objects == null) ? null : ((objects.get(i) == null) ? null : objects.get(i));
    SourceLinkContainer sourceLink = this.createSourceContainerFromObjectId(lArchiveDetails.get(i).getDetails().getSource());
    final COMObjectEntity newObj = new COMObjectEntity(
        objTypeId,
        domainId,
        lArchiveDetails.get(i).getInstId(),
        lArchiveDetails.get(i).getTimestamp().getValue(),
        providerURIId,
        networkId,
        sourceLink,
        lArchiveDetails.get(i).getDetails().getRelated(),
        objBody); // 0.170 ms
    newObjs.add(newObj);
    objIds.add(lArchiveDetails.get(i).getInstId());
  }
  Runnable publishEvents = this.generatePublishEventsThread(ArchiveHelper.OBJECTUPDATED_OBJECT_TYPE,
      objType, domain, objIds, interaction);
  this.dbProcessor.update(newObjs, publishEvents);
}
origin: int.esa.nmf.core.moservices.impl/ccsds-com

domainId,
objId,
lArchiveDetails.get(i).getTimestamp().getValue(),
providerURIId,
networkId,
org.ccsds.moims.mo.com.archive.structuresArchiveDetailsgetTimestamp

Javadoc

Returns the field timestamp.

Popular methods of ArchiveDetails

  • <init>
    Constructor that initialises the values of the structure.
  • setInstId
    Sets the field instId.
  • getDetails
    Returns the field details.
  • getInstId
    Returns the field instId.
  • setDetails
    Sets the field details.
  • setNetwork
    Sets the field network.
  • setProvider
    Sets the field provider.
  • setTimestamp
    Sets the field timestamp.
  • getNetwork
    Returns the field network.
  • getProvider
    Returns the field provider.

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now