Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
419dd6a0
Commit
419dd6a0
authored
Aug 22, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(IONC): добавил в getInfo() userparam=2: вывод объектов у которых lostEvent>0
parent
e0ec8534
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
9 deletions
+44
-9
TDelay.h
extensions/LogicProcessor/TDelay.h
+1
-1
IONotifyController.cc
src/Processes/IONotifyController.cc
+43
-8
No files found.
extensions/LogicProcessor/TDelay.h
View file @
419dd6a0
...
@@ -39,7 +39,7 @@ class TDelay:
...
@@ -39,7 +39,7 @@ class TDelay:
}
}
void
setDelay
(
timeout_t
timeMS
);
void
setDelay
(
timeout_t
timeMS
);
inline
timeout_t
getDelay
()
inline
timeout_t
getDelay
()
const
{
{
return
delay
;
return
delay
;
}
}
...
...
src/Processes/IONotifyController.cc
View file @
419dd6a0
...
@@ -81,7 +81,7 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
...
@@ -81,7 +81,7 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
inf
<<
i
->
info
<<
endl
;
inf
<<
i
->
info
<<
endl
;
if
(
userparam
==
1
)
if
(
userparam
==
1
||
userparam
==
2
)
{
{
inf
<<
"------------------------------- consumers list ------------------------------"
<<
endl
;
inf
<<
"------------------------------- consumers list ------------------------------"
<<
endl
;
{
{
...
@@ -99,14 +99,48 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
...
@@ -99,14 +99,48 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
if
(
i
.
clst
.
empty
()
)
if
(
i
.
clst
.
empty
()
)
continue
;
continue
;
inf
<<
"("
<<
setw
(
6
)
<<
a
.
first
<<
")["
<<
oind
->
getMapName
(
a
.
first
)
<<
"]"
<<
endl
;
// если надо выводить только тех, у кого есть "потери"(lostEvent>0)
// то надо сперва смотреть список, а потом выводить
if
(
userparam
==
2
)
{
bool
ok
=
false
;
for
(
const
auto
&
c
:
i
.
clst
)
{
if
(
c
.
lostEvents
>
0
)
{
ok
=
true
;
break
;
}
}
if
(
!
ok
)
continue
;
for
(
const
auto
&
c
:
i
.
clst
)
// выводим тех у кого lostEvent>0
inf
<<
"("
<<
setw
(
6
)
<<
a
.
first
<<
")["
<<
oind
->
getMapName
(
a
.
first
)
<<
"]"
<<
endl
;
for
(
const
auto
&
c
:
i
.
clst
)
{
if
(
c
.
lostEvents
>
0
)
{
inf
<<
" "
<<
"("
<<
setw
(
6
)
<<
c
.
id
<<
")"
<<
setw
(
35
)
<<
ORepHelpers
::
getShortName
(
oind
->
getMapName
(
c
.
id
))
<<
" [lostEvents="
<<
c
.
lostEvents
<<
" attempt="
<<
c
.
attempt
<<
"]"
<<
endl
;
}
}
}
else
// просто выводим всех
{
{
inf
<<
" "
<<
"("
<<
setw
(
6
)
<<
c
.
id
<<
")"
inf
<<
"("
<<
setw
(
6
)
<<
a
.
first
<<
")["
<<
oind
->
getMapName
(
a
.
first
)
<<
"]"
<<
endl
;
<<
setw
(
35
)
<<
ORepHelpers
::
getShortName
(
oind
->
getMapName
(
c
.
id
))
<<
" [lostEvents="
<<
c
.
lostEvents
<<
" attempt="
<<
c
.
attempt
<<
"]"
for
(
const
auto
&
c
:
i
.
clst
)
<<
endl
;
{
inf
<<
" "
<<
"("
<<
setw
(
6
)
<<
c
.
id
<<
")"
<<
setw
(
35
)
<<
ORepHelpers
::
getShortName
(
oind
->
getMapName
(
c
.
id
))
<<
" [lostEvents="
<<
c
.
lostEvents
<<
" attempt="
<<
c
.
attempt
<<
"]"
<<
endl
;
}
}
}
}
}
}
}
...
@@ -115,7 +149,8 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
...
@@ -115,7 +149,8 @@ SimpleInfo* IONotifyController::getInfo( ::CORBA::Long userparam )
inf
<<
"IONotifyController::UserParam help: "
<<
endl
inf
<<
"IONotifyController::UserParam help: "
<<
endl
<<
" 0. Common info"
<<
endl
<<
" 0. Common info"
<<
endl
<<
" 1. Consumers list "
<<
endl
;
<<
" 1. Consumers list "
<<
endl
<<
" 2. Consumers list with lostEvent > 0"
<<
endl
;
i
->
info
=
inf
.
str
().
c_str
();
i
->
info
=
inf
.
str
().
c_str
();
...
...
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