Class: AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::WorkingProcessInfo Private

Inherits:
Object
  • Object
show all
Includes:
Support::SendToOle
Defined in:
lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Wrapper for 1C:Enterprise IWorkingProcessInfo ole object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::SendToOle

#method_missing

Constructor Details

#initialize(ole, cluster) ⇒ WorkingProcessInfo

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of WorkingProcessInfo.



19
20
21
# 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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Support::SendToOle

Instance Attribute Details

#clusterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 18

def cluster
  @cluster
end

#connectionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 18

def connection
  @connection
end

#oleObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 18

def ole
  @ole
end

#sagentObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 18

def sagent
  @sagent
end

Instance Method Details

#connect(infobase_wrapper) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
# 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?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return true if TCP port available on server

Returns:

  • (Boolean)


28
29
30
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 28

def ping?
  tcp_ping.ping?
end

#tcp_pingNet::Ping::TCP

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns instance.

Returns:

  • (Net::Ping::TCP)

    instance



34
35
36
# 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