Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
ExplorViz
explorviz-github-archive
analysis
Commits
e853e503
Commit
e853e503
authored
11 years ago
by
Florian Fittkau
Browse files
Options
Downloads
Patches
Plain Diff
working on tcp connector
parent
a1a34847
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/explorviz/live_trace_processing/connector/TCPConnector.java
+6
-1
6 additions, 1 deletion
...plorviz/live_trace_processing/connector/TCPConnector.java
with
6 additions
and
1 deletion
src/explorviz/live_trace_processing/connector/TCPConnector.java
+
6
−
1
View file @
e853e503
...
...
@@ -20,6 +20,8 @@ public class TCPConnector extends AbstractSink implements IWriter {
private
final
Configuration
configuration
;
private
ByteBuffer
byteBuffer
;
public
TCPConnector
(
final
String
hostname
,
final
int
port
,
final
Configuration
configuration
)
{
this
.
configuration
=
configuration
;
try
{
...
...
@@ -65,7 +67,10 @@ public class TCPConnector extends AbstractSink implements IWriter {
@Override
protected
void
processRecord
(
final
IRecord
record
,
final
HostApplicationMetaDataRecord
hostApplicationMetaData
)
{
// send(); TODO
if
(
record
.
getRecordSizeInBytes
()
>
byteBuffer
.
remaining
())
{
send
(
byteBuffer
);
}
record
.
putIntoByteBuffer
(
byteBuffer
);
}
private
void
send
(
final
ByteBuffer
buffer
)
{
...
...
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