commit | ece674df14c8ecf818438c3bc6626a104cf9c305 | [log] [tgz] |
---|---|---|
author | efiacor <fiachra.corcoran@est.tech> | Fri Oct 21 14:33:48 2022 +0100 |
committer | efiacor <fiachra.corcoran@est.tech> | Tue Oct 25 11:26:09 2022 +0100 |
tree | a393e119af96c15799c4959f58899930d08e0d64 | |
parent | cff56489f774f937654cb6eb198d3d5ef41418a2 [diff] |
[SDC-DIST] Remove msgBusAddress config Update javadocs for specific interfaces Add javadoc build for maven storage Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I603c6162079e19b431e10c9489aef45c15ce181c Issue-ID: DMAAP-1745
ONAP SDC Distribution client is delivered as helper JAR that can be used by clients that work with SDC. It register to SDC for getting notifications, listen for notification from SDC, download artifacts from SDC, and send response back to SDC.
As mentioned in the onap wiki https://wiki.onap.org/display/DW/Setting+Up+Your+Development+Environment, the settings.xml (https://git.onap.org/oparent/plain/settings.xml) from the oparent project must be installed in your ~/.m2 folder and referenced by your IDE.
Once maven is set up properly, ONAP SDC Distribution client can be compiled easily using maven command: mvn clean install
The result is JAR file under "target" folder
Every client that wants to use the JAR, need to implement IConfiguration interface.
package org.onap.conf;
import java.util.ArrayList; import java.util.List;
import org.onap.sdc.api.consumer.IConfiguration; import org.onap.sdc.utils.ArtifactTypeEnum;
public class SimpleConfiguration implements IConfiguration{ int randomSeed; String sdcAddress;
public SimpleConfiguration(){ randomSeed = ((int)(Math.random()*1000)); sdcAddress = "127.0.0.1:8443"; } public String getUser() { return "ci"; } public List<String> getRelevantArtifactTypes() { List<String> res = new ArrayList<>(); for(ArtifactTypeEnum artifactTypeEnum : ArtifactTypeEnum.values()){ res.add(artifactTypeEnum.name()); } return res; } public int getPollingTimeout() { return 20; } public int getPollingInterval() { return 20; } public String getPassword() { return "123456"; } public String getEnvironmentName() { return "PROD"; } public String getConsumerID() { return "unique-Consumer-ID"+randomSeed; } public String getConsumerGroup() { return "unique-Consumer-Group"+randomSeed; } public String getSdcAddress() { return sdcAddress; } public void setSdcAddress(String sdcAddress) { this.sdcAddress = sdcAddress; } @Override public String getKeyStorePath() { return null; } @Override public String getKeyStorePassword() { return null; } @Override public boolean activateServerTLSAuth() { return false; }
}
log4j.rootCategory=DEBUG, CONSOLE, LOGFILE log4j.logger.org.onap=TRACE, CONSOLE, LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender log4j.appender.LOGFILE.File=logs/wordnik.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n log4j.appender.LOGFILE.MaxFileSize=10MB log4j.appender.LOGFILE.MaxBackupIndex=10
*** to be completed on release ***
SDC Javadoc and Maven site
*** to be completed on rrelease ***