Module: Gizzard
- Defined in:
- lib/gizzard.rb,
lib/gizzard/digest.rb,
lib/gizzard/thrift.rb,
lib/gizzard/commands.rb,
lib/gizzard/migrator.rb,
lib/gizzard/nameserver.rb,
lib/gizzard/rebalancer.rb,
lib/gizzard/shard_template.rb,
lib/gizzard/transformation.rb,
lib/gizzard/transformation_op.rb,
lib/gizzard/transformation_scheduler.rb
Defined Under Namespace
Modules: Digest, HostStatus, ParallelMap
Classes: AddHostCommand, AddPartitionCommand, AddforwardingCommand, AddlinkCommand, BaseTransformCommand, BoundTransformation, BusyCommand, Command, CopyCommand, CreateCommand, CreateTableCommand, DeleteCommand, DeleteforwardingCommand, DrillCommand, DumpCommand, FindCommand, FinishMigrateCommand, FinishReplicaCommand, FlushCommand, Forwarding, ForwardingsCommand, GizzmoService, Host, HostsCommand, InfoCommand, InjectCommand, JobInjector, LinkInfo, LinksCommand, ListHostsCommand, LookupCommand, Manager, MarkbusyCommand, MarkunbusyCommand, Migrator, MigratorConfig, Nameserver, PairCommand, RebalanceCommand, Rebalancer, ReloadCommand, RemoveHostCommand, RemovePartitionCommand, RepairTablesCommand, ReportCommand, RetryProxy, SetupMigrateCommand, SetupReplicaCommand, Shard, ShardId, ShardInfo, ShardTemplate, SubtreeCommand, TablesCommand, TopologyCommand, TransformCommand, TransformTreeCommand, Transformation, UnlinkCommand, UnwrapCommand, WrapCommand
Constant Summary
collapse
- T =
ThriftClient::Simple
- GizzardException =
T.make_exception(:GizzardException,
T::Field.new(:description, T::STRING, 1)
)
- NameServerState =
T.make_struct(:NameServerState,
T::Field.new(:shards, list(struct(ShardInfo)), 1),
T::Field.new(:links, list(struct(LinkInfo)), 2),
T::Field.new(:forwardings, list(struct(Forwarding)), 3),
T::Field.new(:table_id, T::I32, 4)
)
- Job =
T.make_struct(:Job,
T::Field.new(:priority, T::I32, 1),
T::Field.new(:contents, T::STRING, 2)
)
- JobException =
T.make_exception(:JobException,
T::Field.new(:description, T::STRING, 1)
)
Class Method Summary
collapse
Class Method Details
.list(*args) ⇒ Object
10
11
12
|
# File 'lib/gizzard/thrift.rb', line 10
def self.list(*args)
T::ListType.new(*args)
end
|
.schedule!(*args) ⇒ Object
.struct(*args) ⇒ Object
6
7
8
|
# File 'lib/gizzard/thrift.rb', line 6
def self.struct(*args)
T::StructType.new(*args)
end
|