/** * Sends an error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendError(error); }
/** * Sends a PROGRESS acknowledge to the consumer. * @return Returns the MAL message created by the acknowledge. * @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.transport.MALMessage sendAcknowledgement() throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendAcknowledgement((Object[]) null); }
/** * Sends a PROGRESS response to the consumer. * @return Returns the MAL message created by the response. * @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.transport.MALMessage sendResponse() throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendResponse((Object[]) null); }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Sends a PROGRESS update to the consumer. * @param chunk . * @param index . * @return Returns the MAL message created by the update. * @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.transport.MALMessage sendUpdate(org.ccsds.moims.mo.mal.structures.Blob chunk, org.ccsds.moims.mo.mal.structures.UInteger index) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdate(chunk, index); }
/** * Sends an update error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendUpdateError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdateError(error); }
ConfigurationProviderSingleton.getDomain(), appInstIds, sourceList, interaction.getInteraction()); final URI uri = interaction.getInteraction().getMessageHeader().getURIFrom();
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Sends a PROGRESS update to the consumer. * @param chunk . * @param index . * @return Returns the MAL message created by the update. * @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.transport.MALMessage sendUpdate(org.ccsds.moims.mo.mal.structures.Blob chunk, org.ccsds.moims.mo.mal.structures.UInteger index) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdate(chunk, index); }
/** * Sends an update error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendUpdateError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdateError(error); }
@Override public void retrieveRange(FineTime from, FineTime until, ObjectTypeList objectTypes, Identifier compression, RetrieveRangeInteraction interaction) throws MALInteractionException, MALException { final Dispatcher dispatcher = new Dispatcher(interaction); long interactionTicket = interaction.getInteraction().getMessageHeader().getTransactionId(); dispatchers.put(interactionTicket, dispatcher); lastSync.set(HelperTime.getTimestamp().getValue()); interaction.sendAcknowledgement(interactionTicket); Runnable processQueriedObjs = dispatcher.getProcessingRunnable(); Runnable flushProcessedObjs = dispatcher.getFlushingRunnable(); executor.execute(processQueriedObjs); executor.execute(flushProcessedObjs); ArrayList<COMObjectEntity> perObjs; for (int i = 0; i < objectTypes.size(); i++) { ArchiveQuery archiveQuery = new ArchiveQuery(); archiveQuery.setStartTime(from); archiveQuery.setEndTime(until); archiveQuery.setDomain(null); archiveQuery.setNetwork(null); archiveQuery.setProvider(null); archiveQuery.setRelated(new Long(0)); archiveQuery.setSource(null); archiveQuery.setSortFieldName(null); perObjs = manager.queryCOMObjectEntity(objectTypes.get(i), archiveQuery, null); dispatcher.addObjects(perObjs); } dispatcher.setQueriesAreDone(true); Logger.getLogger(ArchiveSyncProviderServiceImpl.class.getName()).log(Level.INFO, "Stage 1: The objects were queried and are now being sent back to the consumer!"); }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Sends an error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendError(error); }
/** * Sends a PROGRESS update to the consumer. * @param dataBlock The dataBlock field shall contain the memory block data being dumped. * @return Returns the MAL message created by the update. * @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.transport.MALMessage sendUpdate(org.ccsds.moims.mo.softwaremanagement.memorymanagement.structures.DataBlock dataBlock) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdate(dataBlock); }
/** * Sends an update error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendUpdateError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdateError(error); }
/** * Sends a PROGRESS acknowledge to the consumer. * @return Returns the MAL message created by the acknowledge. * @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.transport.MALMessage sendAcknowledgement() throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendAcknowledgement((Object[]) null); }
/** * Sends a PROGRESS response to the consumer. * @return Returns the MAL message created by the response. * @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.transport.MALMessage sendResponse() throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendResponse((Object[]) null); }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Sends an error to the consumer. * @param error error The MAL error to send to the consumer. * @return Returns the MAL message created by the error. * @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.transport.MALMessage sendError(org.ccsds.moims.mo.mal.MALStandardError error) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendError(error); }
/** * Sends a PROGRESS update to the consumer. * @param objType objType Argument number 0 as defined by the service operation. * @param domain domain Argument number 1 as defined by the service operation. * @param objDetails objDetails Argument number 2 as defined by the service operation. * @param objBodies objBodies Argument number 3 as defined by the service operation. * @return Returns the MAL message created by the update. * @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.transport.MALMessage sendUpdate(org.ccsds.moims.mo.com.structures.ObjectType objType, org.ccsds.moims.mo.mal.structures.IdentifierList domain, org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList objDetails, org.ccsds.moims.mo.mal.structures.ElementList objBodies) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { return interaction.sendUpdate(objType, domain, objDetails, objBodies); }