Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
ALfA/ALfA/src/main/java/fr/unicaen/iota/application/ALfA.java | ||
---|---|---|
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).traceEPC(EPC);
|
||
}
|
||
|
||
@Override
|
||
public Map<String, List<EPCISEventType>> traceEPCByEPCIS(Identity identity, String EPC) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[TRACE EPC BY EPCIS]");
|
||
LOG.trace(EPC);
|
||
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).traceEPCbyEPCIS(EPC);
|
||
}
|
||
|
||
@Override
|
||
public List<EPCISEventType> traceEPC(Identity identity, String EPC, Map<String, String> filters) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[FILTERED TRACE]");
|
||
... | ... | |
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).filteredTrace(EPC, filters);
|
||
}
|
||
|
||
@Override
|
||
public Map<String, List<EPCISEventType>> traceEPCByEPCIS(Identity identity, String EPC, Map<String, String> filters) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[FILTERED TRACE BY EPCIS]");
|
||
LOG.trace(EPC);
|
||
return new TraceEPC(identity, pksFilename, pksPassword, trustPksFilename, trustPksPassword).filteredTracebyEPCIS(EPC, filters);
|
||
}
|
||
|
||
@Override
|
||
public String getEPCDocURL(String EPC) {
|
||
LOG.trace("[COMMAND]--[GET EPC DOC]");
|
||
... | ... | |
public List<EPCISEventType> queryEPCIS(Identity identity, String EPC, String EPCISAddress) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[QUERY EPCIS]");
|
||
EpcisOperation epcisOperation = null;
|
||
while (epcisOperation == null) {
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
LOG.warn("Unable to create service proxy port! [RETRY]", e);
|
||
}
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
String msg = "Unable to create service proxy port";
|
||
LOG.warn(msg, e);
|
||
throw new RemoteException(msg, e);
|
||
}
|
||
return epcisOperation.getEventFromEPC(EPC);
|
||
}
|
||
... | ... | |
public List<EPCISEventType> queryEPCIS(Identity identity, Map<String, String> filters, String EPCISAddress) throws RemoteException {
|
||
LOG.trace("[COMMAND]--[QUERY EPCIS FILTERS]");
|
||
EpcisOperation epcisOperation = null;
|
||
while (epcisOperation == null) {
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
LOG.warn("Unable to create service proxy port! [RETRY]", e);
|
||
}
|
||
try {
|
||
epcisOperation = new EpcisOperation(identity, EPCISAddress, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
|
||
} catch (Exception e) {
|
||
epcisOperation = null;
|
||
String msg = "Unable to create service proxy port";
|
||
LOG.warn(msg, e);
|
||
throw new RemoteException(msg, e);
|
||
}
|
||
List<EPCISEventType> res = epcisOperation.getFilteredEvent(filters);
|
||
return res;
|
Formats disponibles : Unified diff
Version 1.99
- a few bugs fixed!
- new testing application to capture events
- new options to the command line to configure the public/private keys
for TLS and for signature
- new method more accurate than "traceEPC": the events are sorted by
EPCIS
- New options added to the command line
- user can be identified by alias, if the DN of his certificate is
incompatible with the LDAP directory
- new shell script to configure the LDAP directory (same
functionnalities as IoTa-Installer)
- installs and configures LaMBDa
- finer certificate mangagement
- EpcILoN correctly subscribe with TLS to ETa
- new figure for LaMBDa
- shows data flows between PHI and YPSilon
- sets DS and DSeTa in different schemas