Commit b0db584c authored by Xabier Perez Bascaran's avatar Xabier Perez Bascaran
Browse files

Switch to Java

parent 00a9dcfa
/.metadata/
FROM python:3.7-alpine
RUN apk update && apk upgrade && apk add --no-cache gcc musl-dev linux-headers
COPY requirements.txt ./
RUN python3 -m pip install -r requirements.txt
COPY telemetry.py config.yml ./
CMD ["python3", "-u", "./telemetry.py"]
FROM python:3.7-alpine
RUN apk update && apk upgrade && apk add --no-cache gcc musl-dev linux-headers
COPY requirements.txt ./
RUN python3 -m pip install -r requirements.txt
COPY commscost.py commscost-config.yml app-info.yml app-attr.yml ./
CMD ["python3", "-u", "./commscost.py"]
NFRTool - Comms
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
HOST=172.16.102.26
TCPPORT=11034
CHECK_LOG4J_DEBUG=false
<?xml version="1.0" encoding="UTF-8"?>
<Configuration monitorInterval="60" status="off">
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} %p [%c] [%t] [%C{1}:%L] %m%n"></PatternLayout>
</Console>
</Appenders>
<Loggers>
<Logger name="DataClay.api" level="off" />
<!-- Runtime -->
<Logger name="ClientRuntime" level="off" />
<Logger name="ClientManagementLib" level="off"/>
<Logger name="DataClayRuntime" level="off"/>
<Logger name="DataServiceRuntime" level="off"/>
<Logger name="DataClayObjectLoader" level="off"/>
<Logger name="DataClayObject" level="off" /> <!-- This is very verbose! -->
<!-- Data service -->
<Logger name="DataService" level="off"/>
<Logger name="ExecutionEnvironmentSrv" level="off"/>
<!-- Lockers -->
<Logger name="dataclay.util.classloaders.SyncClass" level="off"/>
<Logger name="dataclay.heap.LockerPool" level="off"/>
<Logger name="LockerPool" level="off"/>
<Logger name="dataclay.util.classloaders.ClassLockers" level="off"/>
<!-- Garbage collection -->
<Logger name="GlobalGC" level="off"/>
<Logger name="heap.HeapManager" level="off"/>
<Logger name="ReferenceCounting" level="off"/>
<Logger name="StorageLocation" level="off"/>
<!-- Logic module -->
<Logger name="LogicModule" level="off"/>
<Logger name="LMDB" level="off"/>
<Logger name="managers" level="off" />
<Logger name="MetaDataService.db" level="off" />
<Logger name="MetaDataService" level="off" />
<!-- Communication -->
<Logger name="io.grpc" level="off"/>
<Logger name="io.netty" level="off"/>
<Logger name="NettyClientHandler" level="off"/>
<Logger name="grpc.client" level="off"/>
<Logger name="communication.LogicModule.service" level="off"/>
<Logger name="grpc.client.logicmodule" level="off"/>
<Logger name="grpc.client.dataservice.DS1" level="off"/>
<!-- Databases -->
<Logger name="dataclay.dbhandler" level="off"/>
<Logger name="dbhandler.PostgresConnection" level="off" />
<Logger name="org.apache.commons.dbcp2" level="off"/>
<Logger name="PostgresHandler" level="off"/>
<Logger name="SQLHandler" level="off"/>
<!-- Misc -->
<Logger name="util" level="off" />
<Logger name="exceptions" level="off"/>
<Logger name="Paraver" level="off"/>
<Logger name="DataClaySerializationLib" level="off"/>
<Logger name="DataClayDeserializationLib" level="off"/>
<!-- ROOT LOGGER -->
<Root level="off">
<AppenderRef ref="ConsoleAppender" />
</Root>
</Loggers>
</Configuration>
Account=ElasticUser
Password=ElasticPass
DataSets=ElasticDS
DataSetForStore=ElasticDS
StubsClasspath=./stubs
devLevel:
rttmax: 25
rttmax: 5
pllmax: 1e-6
VoIP:
norm: 10
priority: 2
balance: 0.25
rttmax: 100
rttmax: 5
pllmax: 1e-2
iface: enp0s3
iface: Wi-Fi
videoCall:
norm: 10
......@@ -30,9 +30,9 @@ videoStream:
norm: 10
priority: 5
balance: 0.25
rttmax: 300
rttmax: 5
pllmax: 1e-6
iface: enp0s3
iface: Wi-Fi
criticalPTT:
norm: 10
......
devLevel:
rttmax: 35
pllmax: 1e-6
VoIP:
norm: 10
priority: 2
balance: 0.25
rttmax: 100
pllmax: 1e-2
iface: enp0s3
videoCall:
norm: 10
priority: 4
balance: 0.25
rttmax: 150
pllmax: 1e-3
iface: enp0s3
onlineGame:
norm: 10
priority: 3
balance: 0.25
rttmax: 50
pllmax: 1e-3
iface: enp0s3
videoStream:
norm: 10
priority: 5
balance: 0.25
rttmax: 300
pllmax: 1e-6
iface: enp0s3
criticalPTT:
norm: 10
priority: 0.7
balance: 0.25
rttmax: 75
pllmax: 1e-2
iface: enp0s3
nonCriticalPTT:
norm: 10
priority: 2
balance: 0.25
rttmax: 100
pllmax: 1e-2
iface: enp0s3
IMS:
norm: 10
priority: 1
balance: 0.25
rttmax: 100
pllmax: 1e-6
iface: enp0s3
TCPservices:
norm: 10
priority: 6
balance: 0.25
rttmax: 300
pllmax: 1e-6
iface: enp0s3
interactive:
norm: 10
priority: 7
balance: 0.25
rttmax: 100
pllmax: 1e-3
iface: enp0s3
delaySensitive:
norm: 10
priority: 0.5
balance: 0.25
rttmax: 60
pllmax: 1e-6
iface: enp0s3
criticalData:
norm: 10
priority: 5.5
balance: 0.25
rttmax: 200
pllmax: 1e-6
iface: enp0s3
yolo:
pid: 1234
infoNature: videoStream
active: True
crewcall:
pid: 5678
infoNature: VoIP
active: True
monitor:
interval: 1
netinterfaces:
- enp0s3
costparams:
norm: 10
- Wi-Fi
- lalala
costparams: {norm: 10}
import:
file:
enabled: yes
path: ./telemetry-data/telemetry-output
file: {enabled: true, path: ./telemetry-output}
mqtt:
enabled: no
enabled: false
hostname: emq.konnekt.ikerlan.es
port: 1883
username: dev
password:
password: null
topic: konnekt/v2/demo/telemetry
tls:
enabled: no
ca:
cert:
key:
tls: {enabled: false, ca: null, cert: null, key: null}
export:
screen:
enabled: yes
file:
enabled: yes
path: ./commsCost-output
screen: {enabled: true}
file: {enabled: true, path: ./commsCost-output}
mqtt:
enabled: no
enabled: false
hostname: emq.konnekt.ikerlan.es
port: 1883
username: dev
password:
password: null
topic: konnekt/v2/demo/commsCost
tls:
enabled: no
ca:
cert:
key:
tls: {enabled: false, ca: null, cert: null, key: null}
timestamp: 1583761048243
monitor:
interval: 1
netinterfaces:
- enp0s3
endpoint:
icmp_ping: 8.8.8.8
http_ping: http://www.konnekt.ikerlan.es
netinterfaces: ["Wi-Fi"]
endpoint: {icmp_ping: 8.8.8.8, http_ping: 'http://www.konnekt.ikerlan.es'}
export:
screen:
enabled: no
file:
enabled: yes
path: ./telemetry-data/telemetry-output
screen: {enabled: false}
file: {enabled: true, path: ./telemetry-output}
mqtt:
enabled: no
enabled: true
hostname: emq.konnekt.ikerlan.es
port: 1883
username: dev
password:
password: null
topic: konnekt/v2/demo/telemetry
tls:
enabled: no
ca:
cert:
key:
tls: {enabled: false, ca: null, cert: null, key: null}
timestamp: 1583841321370
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment