Sha256: ea243689ac85c98aac118d711a5cd359f067d7e3686650dcab0c0516ddf21440
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
RemoteServiceID=Struct.new(:nodeInformation,:name,:provides) class RemoteService def initialize(serviceID,networkNode) @service=serviceID @networkNode=networkNode end def method_missing(*s) log "remoteService calling #{s.inspect}" if s[0].to_s=~/.*!/ res=@networkNode.callRun(@service,s) else res=@networkNode.call(@service,s) end log "RESULT:",res res end def log(*s) @networkNode.log(*s) end end class RemoteCall def intialize(remoteService,calledBy,name,args) end end def RemoteReturn def initialize(to,what) @to=to @what=what end end class RemoteRun def initialize(remoteService,name,args) @args=args end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | apps/network_node/remote_service.rb |