Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeeTime
Kieker-TeeTime-Stages
Commits
ed40ac9c
Commit
ed40ac9c
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
fixed exception handling
parent
8a207812
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/stage/io/network/TcpReader.java
+5
-6
5 additions, 6 deletions
src/main/java/teetime/stage/io/network/TcpReader.java
with
5 additions
and
6 deletions
src/main/java/teetime/stage/io/network/TcpReader.java
+
5
−
6
View file @
ed40ac9c
...
...
@@ -25,7 +25,7 @@ import java.nio.channels.SocketChannel;
import
teetime.stage.io.AbstractTcpReader
;
import
kieker.common.exception.
MonitoringRecord
Exception
;
import
kieker.common.exception.
RecordInstantiation
Exception
;
import
kieker.common.logging.Log
;
import
kieker.common.logging.LogFactory
;
import
kieker.common.record.IMonitoringRecord
;
...
...
@@ -81,15 +81,14 @@ public class TcpReader extends AbstractTcpReader<IMonitoringRecord> {
final
String
recordClassName
=
this
.
stringRegistry
.
get
(
clazzId
);
try
{
// final IMonitoringRecord record = AbstractMonitoringRecord.createFromByteBuffer(clazzId, buffer, this.stringRegistry);
// record.setLoggingTimestamp(loggingTimestamp);
final
IRecordFactory
<?
extends
IMonitoringRecord
>
recordFactory
=
this
.
recordFactories
.
get
(
recordClassName
);
record
=
recordFactory
.
create
(
buffer
,
this
.
stringRegistry
);
IMonitoringRecord
record
=
recordFactory
.
create
(
buffer
,
this
.
stringRegistry
);
record
.
setLoggingTimestamp
(
loggingTimestamp
);
this
.
send
(
this
.
outputPort
,
record
);
}
catch
(
final
MonitoringRecordException
ex
)
{
}
catch
(
final
BufferUnderflowException
ex
)
{
super
.
logger
.
error
(
"Failed to create record."
,
ex
);
}
catch
(
final
RecordInstantiationException
ex
)
{
super
.
logger
.
error
(
"Failed to create record."
,
ex
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment