Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
FMS_Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bashar.hussein
FMS_Project
Commits
730712ce
Commit
730712ce
authored
Aug 12, 2023
by
ReemyHasan
Committed by
Bashar
Aug 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleaning
parent
605d4719
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
12 deletions
+23
-12
application.properties
...ne/SnmpReciever/src/main/resources/application.properties
+1
-1
SseEmitters.java
...java/com/example/WebApplication/handlers/SseEmitters.java
+0
-1
RethinkDBService.java
...com/example/WebApplication/services/RethinkDBService.java
+5
-2
application.properties
...ipeline/api-gateway/target/classes/application.properties
+11
-4
AuthController.class
...arget/classes/com/example/controller/AuthController.class
+0
-0
AuthService.class
...vice/target/classes/com/example/service/AuthService.class
+0
-0
application.properties
...ervice-registry/src/main/resources/application.properties
+3
-2
application.properties
...ne/service-registry/target/classes/application.properties
+3
-2
No files found.
SNMP_Pipeline/SnmpReciever/src/main/resources/application.properties
View file @
730712ce
...
...
@@ -2,7 +2,7 @@ server.port = 0
spring.kafka.bootstrap-servers
=
http://172.29.3.220:9092
spring.kafka.producer.key-serializer
=
org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer
=
org.apache.kafka.common.serialization.StringSerializer
spring.listener.address
=
localhost
/1625
spring.listener.address
=
192.168.27.227
/1625
spring.listener.threads
=
20
spring.listener.community
=
public
spring.application.name
=
TRAP-LISTENER-SERVICE
...
...
SNMP_Pipeline/Web-Application/src/main/java/com/example/WebApplication/handlers/SseEmitters.java
View file @
730712ce
...
...
@@ -27,7 +27,6 @@ public class SseEmitters {
public
void
send
(
Object
obj
)
{
List
<
SseEmitter
>
failedEmitters
=
new
ArrayList
<>();
this
.
emitters
.
forEach
(
emitter
->
{
System
.
out
.
println
(
"Kill me"
);
try
{
emitter
.
send
(
obj
);
}
catch
(
Exception
e
)
{
...
...
SNMP_Pipeline/Web-Application/src/main/java/com/example/WebApplication/services/RethinkDBService.java
View file @
730712ce
...
...
@@ -74,11 +74,14 @@ public class RethinkDBService{
singleThreadExecutor
.
execute
(()
->
{
try
{
Connection
connection
=
connectionFactory
.
getConnection
();
Cursor
<
RethinkChange
>
changeCursor
=
r
.
db
(
connectionFactory
.
getDbName
()).
table
(
connectionFactory
.
getDbTableName
()).
changes
().
optArg
(
"include_initial"
,
true
).
Cursor
<
RethinkChange
>
changeCursor
=
r
.
db
(
connectionFactory
.
getDbName
()).
table
(
connectionFactory
.
getDbTableName
())
.
changes
().
optArg
(
"include_initial"
,
true
).
run
(
connection
,
RethinkChange
.
class
);
while
(
changeCursor
.
hasNext
())
{
RethinkChange
changedData
=
changeCursor
.
next
();
eventPublisher
.
publishEvent
(
new
RethinkAppChange
(
this
,
changedData
.
getOld_val
(),
changedData
.
getNew_val
()));
eventPublisher
.
publishEvent
(
new
RethinkAppChange
(
this
,
changedData
.
getOld_val
(),
changedData
.
getNew_val
()));
}
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"error "
+
e
);
...
...
SNMP_Pipeline/api-gateway/target/classes/application.properties
View file @
730712ce
...
...
@@ -17,7 +17,14 @@ spring.cloud.gateway.routes[2].uri=lb://USER-SERVICE
spring.cloud.gateway.routes[2].predicates[0]=
Path
=
/users/**
spring.cloud.gateway.routes[2].filters[0]=AuthenticationFilter
spring.cloud.gateway.routes[3]
.id
=
user
-service
spring.cloud.gateway.routes[3]
.uri
=
lb://
USER
-SERVICE
spring.cloud.gateway.routes[3].predicates[0]=
Path
=
/
users
/**
spring.cloud.gateway.routes[3]
.id
=
feedback
-service
spring.cloud.gateway.routes[3]
.uri
=
lb://
FEEDBACK
-SERVICE
spring.cloud.gateway.routes[3].predicates[0]=
Path
=
/
feedback
/**
spring.cloud.gateway.routes[3].filters[0]=AuthenticationFilter
spring.cloud.gateway.routes[4]
.id
=
ml-model-service
spring.cloud.gateway.routes[4]
.uri
=
lb://ML-MODEL-SERVICE
spring.cloud.gateway.routes[4].predicates[0]=
Path
=
/model/**
spring.cloud.gateway.routes[4].filters[0]=AuthenticationFilter
SNMP_Pipeline/identity-service/target/classes/com/example/controller/AuthController.class
View file @
730712ce
No preview for this file type
SNMP_Pipeline/identity-service/target/classes/com/example/service/AuthService.class
View file @
730712ce
No preview for this file type
SNMP_Pipeline/service-registry/src/main/resources/application.properties
View file @
730712ce
server.port
=
8761
#eureka.client.registerWithEureka=false
eureka.client.register-with-eureka
=
false
eureka.client.fetchRegistry
=
false
spring.application.name
=
DISCOVERY_SERVICE
SNMP_Pipeline/service-registry/target/classes/application.properties
View file @
730712ce
server.port
=
8761
#eureka.client.registerWithEureka=false
eureka.client.register-with-eureka
=
false
eureka.client.fetchRegistry
=
false
spring.application.name
=
DISCOVERY_SERVICE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment