Class: AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::WorkingProcessInfo Private
- Inherits:
-
Object
- Object
- AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::WorkingProcessInfo
- 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
- #cluster ⇒ Object readonly private
- #connection ⇒ Object readonly private
- #ole ⇒ Object readonly private
- #sagent ⇒ Object readonly private
Instance Method Summary collapse
- #connect(infobase_wrapper) ⇒ Object private
-
#initialize(ole, cluster) ⇒ WorkingProcessInfo
constructor
private
A new instance of WorkingProcessInfo.
-
#ping? ⇒ Boolean
private
Return
trueif TCP port available on server. -
#tcp_ping ⇒ Net::Ping::TCP
private
Instance.
Methods included from Support::SendToOle
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
#cluster ⇒ Object (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 |
#connection ⇒ Object (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 |
#ole ⇒ Object (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 |
#sagent ⇒ Object (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
28 29 30 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 28 def ping? tcp_ping.ping? end |
#tcp_ping ⇒ Net::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.
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 |