@Deprecated public class NetworkMessageTransportService extends MessageTransportService
This implementation of a MTS is able to communicated with other network MTS, ie other kernels.
Modifier and Type | Class and Description |
---|---|
(package private) class |
NetworkMessageTransportService.ConnexionListener
Deprecated.
See "http://www.janus-project.org"
|
(package private) class |
NetworkMessageTransportService.RemoteKernelListener
Deprecated.
See "http://www.janus-project.org"
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
__mts_presented
Deprecated.
|
protected List<KernelIdentifier> |
__other_kernels
Deprecated.
|
protected ServerSocket |
__server_socket
Deprecated.
|
protected ExecutorService |
__server_thread
Deprecated.
|
Constructor and Description |
---|
NetworkMessageTransportService(int socket_port)
Deprecated.
|
NetworkMessageTransportService(int socket_port,
InetAddress other_kernel_adr,
int other_kernel_port)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
broadcast(KernelMessage m)
Deprecated.
|
protected KernelIdentifier |
getKernelId()
Deprecated.
Replies the identifier of a kernel.
|
(package private) boolean |
send(KernelIdentifier kernel,
KernelMessage m)
Deprecated.
|
boolean |
send(Message m)
Deprecated.
Send the specified message according to the
knownledge of this MTS.
|
protected boolean |
sendSocket(InetAddress adr,
int port,
Serializable m)
Deprecated.
Send a message with a socket.
|
void |
startMTS()
Deprecated.
Invoked by the kernel when the MTS should start.
|
void |
stopMTS()
Deprecated.
Invoked by the kernel when the MTS should stop.
|
getNextMessage, hasMessage, registerInLocalBoxes
protected final List<KernelIdentifier> __other_kernels
protected final ServerSocket __server_socket
protected final ExecutorService __server_thread
protected volatile boolean __mts_presented
public NetworkMessageTransportService(int socket_port)
public NetworkMessageTransportService(int socket_port, InetAddress other_kernel_adr, int other_kernel_port)
protected KernelIdentifier getKernelId()
This method is invoked by the kernel to obtain its own identifier.
getKernelId
in class MessageTransportService
void broadcast(KernelMessage m)
boolean send(KernelIdentifier kernel, KernelMessage m)
public boolean send(Message m)
send
in class MessageTransportService
protected boolean sendSocket(InetAddress adr, int port, Serializable m)
public void stopMTS()
stopMTS
in class MessageTransportService
public void startMTS()
startMTS
in class MessageTransportService
Copyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.