Projet

Général

Profil

« Précédent | Suivant » 

Révision 96454bcd

Ajouté par Sylvain Sauvage il y a plus de 11 ans

Version 1.9-mock

This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.

  • All:
    - code cleaned and refactored
    - lots of bugs fixed
    - dependencies checked and trimmed
    - documentation added
    - Identity handling added
  • New library modules (Mu, Nu)
  • New signature modules (SigMa)
  • Access Layer and User interfaces (ALfA and OMeGa):
    - code refactored
    - new, better APIs
    - Identity handling added
    - use EPCglobal and DS events (no proxy types anymore)
  • New tempororay DSeTa web service (pending new DS)
  • ETa corrected and added to the IoTa-Installer
    - ETa-Callback modules are now available as web applications
    - filtering rules: if a part of an event is not allowed, now the whole
    event is deleted from the result (before only the rejectd part was)
  • CaPPa: overall refactoring of XACML handling
    - new temporary User web service
    - new Xi module: XACML Interrogation web service (was two modules: TCP and
    servlet)
  • PSi now signs its events
  • Installer, now also installs or configures:
    - ETa and its Callback modules
    - ActiveMQ
    - SigMa
    - certificate/signing key
  • Greyc letters figures:
    - new simplified figures (sans IoTa and simplified IoTa)
    - new figure for ETa modules
    - show 3rd party clients
    - data flows specified
    - TLS and link security added
    - IDs and trusted IDs added
    - color adjusted for printing
    - GREYC logo added

Voir les différences:

ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/TraceEPCAsync.java
*/
package fr.unicaen.iota.application.operations;
import fr.unicaen.iota.application.conf.Constants;
import fr.unicaen.iota.application.rmi.CallBackClient;
import fr.unicaen.iota.application.rmi.CallbackClient;
import fr.unicaen.iota.nu.ONSOperation;
import fr.unicaen.iota.tau.model.Identity;
import java.rmi.RemoteException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class TraceEPCAsync extends Thread {
private final CallBackClient client;
private final String sessionId;
private final String LOGIN;
private final String PASS;
private final CallbackClient client;
private final String sessionID;
private final Identity identity;
private final String EPC;
private final ONSOperation onsOperation;
private static final Log log = LogFactory.getLog(TraceEPCAsync.class);
public TraceEPCAsync(String epc, CallBackClient client, String login, String pass, String sessionId) {
public TraceEPCAsync(String epc, String sessionID, CallbackClient client, Identity identity) {
this.client = client;
this.LOGIN = login;
this.PASS = pass;
this.sessionId = sessionId;
this.sessionID = sessionID;
this.identity = identity;
this.EPC = epc;
this.onsOperation = new ONSOperation(Constants.ONS_HOSTS);
this.onsOperation = new ONSOperation();
}
@Override
......
log.trace("[TRACE EPC]: " + epc);
log.trace("CALLED METHOD: <traceEPC>");
log.trace("Get Referent ds address");
String dsAddress = onsOperation.getReferentDS(epc);
String dsAddress = onsOperation.getReferentIDedDS(epc);
if (dsAddress == null) {
log.warn("Unable to retreive referent ds address for this epc code");
return;
......
log.trace("referent ds address found: " + dsAddress);
}
log.trace("Start discover");
DiscoveryOperation dsOp = new DiscoveryOperation(LOGIN, PASS, dsAddress, client, sessionId);
DiscoveryOperation dsOp = new DiscoveryOperation(identity, dsAddress, sessionID, client);
dsOp.discover(epc);
}
}

Formats disponibles : Unified diff