Class: Worker::Thread

Inherits:
Base
  • Object
show all
Defined in:
lib/spark/worker/worker.rb

Overview

Worker::Thread

Constant Summary

Constants included from Spark::Constant

Spark::Constant::ACCUMULATOR_ACK, Spark::Constant::CREATE_WORKER, Spark::Constant::DATA_EOF, Spark::Constant::KILL_WORKER, Spark::Constant::KILL_WORKER_AND_WAIT, Spark::Constant::SUCCESSFULLY_KILLED, Spark::Constant::UNSUCCESSFUL_KILLING, Spark::Constant::WORKER_DONE, Spark::Constant::WORKER_ERROR

Constants included from Spark::Helper::Serialize

Spark::Helper::Serialize::DIRECTIVE_CHARS, Spark::Helper::Serialize::DIRECTIVE_DOUBLES_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_DOUBLE_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_INTEGERS_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_INTEGER_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_LONGS_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_LONG_BIG_ENDIAN, Spark::Helper::Serialize::DIRECTIVE_UNSIGNED_CHARS

Instance Attribute Summary

Attributes inherited from Base

#socket

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run

Methods included from Spark::Helper::System

included

Methods included from Spark::Helper::Serialize

#pack_double, #pack_doubles, #pack_int, #pack_ints, #pack_long, #pack_longs, #pack_unsigned_chars, #unpack_chars, #unpack_int, #unpack_long

Constructor Details

This class inherits a constructor from Worker::Base

Instance Method Details

#idObject



166
167
168
# File 'lib/spark/worker/worker.rb', line 166

def id
  ::Thread.current.object_id
end