trait ServerConnection extends AnyRef
A server-side interface to the transport.
The RapidsShuffleServer uses a ServerConnection to start the management port in the transport (in order to allow for incoming connections)
- Alphabetic
- By Inheritance
- ServerConnection
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
registerRequestHandler(messageType: MessageType.Value, cb: TransactionCallback): Unit
Registers a callback that will be called any type a
MessageTypemessage is received by thisServerConnectionRegisters a callback that will be called any type a
MessageTypemessage is received by thisServerConnection- messageType
see
MessageTypeenum- cb
triggered for a success or error on this request
-
abstract
def
send(peerExecutorId: Long, messageType: MessageType.Value, header: Long, buffer: MemoryBuffer, cb: TransactionCallback): Transaction
Send a message using a
MemoryBuffer(data)Send a message using a
MemoryBuffer(data)- peerExecutorId
peer's executor id to target
- messageType
type of message (likely
Buffer)- header
- a long that should match a request header, requester use this header to disambiguate messages
- buffer
an
MemoryBufferfor a buffer to send- cb
callback to trigger once done
- returns
the Transaction, which can be used to block wait for this send.
-
abstract
def
send(peerExecutorId: Long, messageType: MessageType.Value, header: Long, response: ByteBuffer, cb: TransactionCallback): Transaction
Send a message using a
ByteBuffer(for metadata)Send a message using a
ByteBuffer(for metadata)- peerExecutorId
- executor to send response to
- messageType
- type of message (likely
MetadataResponseorTransferResponse)- header
- a long that should match a request header, requester use this header to disambiguate messages
- response
- a direct
ByteBufferto be transmitted- cb
callback to trigger once this respond completes
- returns
a Transaction that can be used to block while this transaction is not done
-
abstract
def
startManagementPort(host: String): Int
Starts a management port, bound to
host, on an ephemeral port (returned)Starts a management port, bound to
host, on an ephemeral port (returned)- host
host to bind to
- returns
integer ephemeral port that was bound
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )