public PeriodicSamplingManager() { sampleTimerList = new ArrayList<Timer>(); aggregationObjIdList = new LongList(); parameterSetIndexList = new ArrayList<Integer>(); }
protected LongList listAllLinks() { LongList list = new LongList(); list.addAll(statLinks.keySet()); return list; }
public LongList listAllCheckLinkIds() { LongList checkLinkIdList = new LongList(); for (Long key : checkLinkIds.keySet()) { checkLinkIdList.add(key); } return checkLinkIdList; }
/** * Lists all the definitions available. * * @return The object instance identifiers of the Definitions. */ public synchronized LongList listAll() { LongList list = new LongList(); list.addAll(defs.keySet()); return list; }
/** * Lists all the defintion-ids available. * * @return The object instance identifiers of the identities. */ public synchronized LongList listAllDefinitions() { LongList list = new LongList(); list.addAll(this.objIdToDefMap.keySet()); return list; }
/** * Lists all the identity-ids available. * * @return The object instance identifiers of the identities. */ public synchronized LongList listAllIdentities() { LongList list = new LongList(); list.addAll(this.identitiesToNamesMap.keySet()); return list; }
public LongList getStatisticLinksForFunction(Long statFuncId) { LongList foundList = new LongList(); final Set<Long> statLinkIds = statLinks.keySet(); for (Long statLinkId : statLinkIds) { if (statLinks.get(statLinkId).getStatFuncInstId().equals(statFuncId)) { foundList.add(statLinkId); } } return foundList; }
@Override public LongList call() { dbBackend.createEntityManager(); Query query = dbBackend.getEM().createQuery(QUERY_SELECT_ALL); query.setParameter("objectTypeId", objTypeId); query.setParameter("domainId", domainId); LongList objIds = new LongList(); objIds.addAll(query.getResultList()); dbBackend.closeEntityManager(); return objIds; } });
/** * @param patchName . * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList listPatch(org.ccsds.moims.mo.mal.structures.IdentifierList patchName) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper.LISTPATCH_OP, patchName); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * The listNearbyPositionEvent operation allows a consumer to request the object instance identifiers of the existing nearby position events in the service. The operation is expected to be used in conjunction with the COM archive which holds the actual nearby position objects. * @param names The names field shall hold a list of NearbyPositionEvent names. * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList listNearbyPosition(org.ccsds.moims.mo.mal.structures.IdentifierList names) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.platform.gps.GPSHelper.LISTNEARBYPOSITION_OP, names); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * The addNearbyPositionEvent operation allows a consumer to define a list of nearby position events in the service.The new NearbyPosition objects are expected to be stored in the COM Archive by the provider of the GPS service. * @param nearbyPositionDefinitions The nearbyPosition field shall hold the definition of a position. * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList addNearbyPosition(org.ccsds.moims.mo.platform.gps.structures.NearbyPositionDefinitionList nearbyPositionDefinitions) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.platform.gps.GPSHelper.ADDNEARBYPOSITION_OP, nearbyPositionDefinitions); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * The listImage operation allows a consumer to request the object instance identifiers of the SoftwareImage objects for the existing Images available on the provider. * @param imageNames . * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList listImage(org.ccsds.moims.mo.mal.structures.IdentifierList imageNames) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper.LISTIMAGE_OP, imageNames); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * @param relatedImageObjIds . * @param files . * @param patchDefs . * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList addPatch(org.ccsds.moims.mo.mal.structures.LongList relatedImageObjIds, org.ccsds.moims.mo.mal.structures.FileList files, org.ccsds.moims.mo.softwaremanagement.softwareimage.structures.PatchDefinition patchDefs) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper.ADDPATCH_OP, relatedImageObjIds, files, patchDefs); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * @param files . * @param imageDefs . * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList addImage(org.ccsds.moims.mo.mal.structures.FileList files, org.ccsds.moims.mo.softwaremanagement.softwareimage.structures.ImageDefinitionList imageDefs) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper.ADDIMAGE_OP, files, imageDefs); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
/** * The listAttitudeDefinition operation allows a consumer to request the object instance identifiers of the attitude definition objects for the supported parameters of the provider. The operation is expected to be used in conjunction with the COM archive which holds the actual ParameterDefinition objects. * @param names The names of the Attitude definitions to be listed. The names field may contain the wildcard value of '*' to return all supported ParameterDefinition objects. * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.mal.structures.LongList listAttitudeDefinition(org.ccsds.moims.mo.mal.structures.IdentifierList names) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.platform.autonomousadcs.AutonomousADCSHelper.LISTATTITUDEDEFINITION_OP, names); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); return (org.ccsds.moims.mo.mal.structures.LongList) body0; }
protected void setCheckEnabledAll(Boolean bool, SingleConnectionDetails connectionDetails) { LongList objIds = new LongList(); objIds.addAll(listAllCheckLinkIds()); for (Long objIdLink : objIds) { setCheckEnabled(objIdLink, bool, connectionDetails); } }
protected void setReportingEnabledAll(Boolean bool, SingleConnectionDetails connectionDetails) { LongList objIds = new LongList(); objIds.addAll(statLinks.keySet()); for (Long objId : objIds) { StatisticCreationRequest link = this.getStatisticLink(objId); link.getLinkDetails().setReportingEnabled(bool); this.update(objId, link, connectionDetails); } }
public void setGenerationEnabledAll(final Boolean bool, final ObjectId source, final SingleConnectionDetails connectionDetails) { LongList identityIds = new LongList(); identityIds.addAll(this.listAllIdentities()); for (Long identityId : identityIds) { AlertDefinitionDetails def = this.getAlertDefinitionFromIdentityId(identityId); def.setGenerationEnabled(bool); this.update(identityId, def, source, connectionDetails); } }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { objType = (org.ccsds.moims.mo.com.structures.ObjectType) decoder.decodeElement(new org.ccsds.moims.mo.com.structures.ObjectType()); domain = (org.ccsds.moims.mo.mal.structures.IdentifierList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.IdentifierList()); objInstIds = (org.ccsds.moims.mo.mal.structures.LongList) decoder.decodeElement(new org.ccsds.moims.mo.mal.structures.LongList()); return this; }
/** * The listUnitsAvailable operation allows a consumer to request the list of the units available and their respective status. * @param names The names field holds the name of the units. * @return The return value of the interaction. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification. * @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception. */ public org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse listUnitsAvailable(org.ccsds.moims.mo.mal.structures.IdentifierList names) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper.LISTUNITSAVAILABLE_OP, names); Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()); Object body1 = (Object) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.BooleanList()); return new org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse((org.ccsds.moims.mo.mal.structures.LongList) body0, (org.ccsds.moims.mo.mal.structures.BooleanList) body1); }