Sha256: 421f09c0fef4b057f3f34b8dac262cdf674f004dc606c7878c4ad1aa51522783
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
module Pione module Command # FrontOwnerCommand is a parent of classes that own front server. class FrontOwnerCommand < BasicCommand prepare do Global.front = create_front end # Create a front server. This method should be overridden in subclasses. # # @return [BasicFront] # front server def create_front raise NotImplementedError end terminate do Global.monitor.synchronize do # stop DRb service # DRb.stop_service end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | lib/pione/command/front-owner-command.rb |
pione-0.2.1 | lib/pione/command/front-owner-command.rb |