Package org.yamcs.simulator
Class TcpTmTcLink
java.lang.Object
com.google.common.util.concurrent.AbstractExecutionThreadService
org.yamcs.simulator.TcpTmTcLink
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class TcpTmTcLink
extends com.google.common.util.concurrent.AbstractExecutionThreadService
TCP link that can be used both for TM and TC
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Constructor Summary
ConstructorDescriptionTcpTmTcLink
(String name, AbstractSimulator simulator, int port, TcPacketFactory packetFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run()
void
sendImmediate
(SimulatorCcsdsPacket packet) void
sendPacket
(byte[] packet) protected void
Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString
-
Constructor Details
-
TcpTmTcLink
public TcpTmTcLink(String name, AbstractSimulator simulator, int port, TcPacketFactory packetFactory)
-
-
Method Details
-
sendPacket
public void sendPacket(byte[] packet) -
run
- Specified by:
run
in classcom.google.common.util.concurrent.AbstractExecutionThreadService
- Throws:
Exception
-
sendImmediate
-
triggerShutdown
protected void triggerShutdown()- Overrides:
triggerShutdown
in classcom.google.common.util.concurrent.AbstractExecutionThreadService
-