class AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::WorkingProcessInfo

@api private Wrapper for 1C:Enterprise IWorkingProcessInfo ole object

Attributes

cluster[R]
connection[R]
ole[R]
sagent[R]

Public Class Methods

new(ole, cluster) click to toggle source
# File lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb, line 19
def initialize(ole, cluster)
  @ole, @cluster, @sagent = ole, cluster, cluster.sagent
end

Public Instance Methods

connect(infobase_wrapper) click to toggle source
# File lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb, line 23
def connect(infobase_wrapper)
  WpConnection.new(self).connect(infobase_wrapper)
end
ping?() click to toggle source

Return true if TCP port available on server

# File lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb, line 28
def ping?
  tcp_ping.ping?
end
tcp_ping() click to toggle source

@return [Net::Ping::TCP] instance

# File lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb, line 34
def tcp_ping
  @tcp_ping ||= Net::Ping::TCP.new(hostName, mainPort)
end