Class: IBRuby::ServiceManager

Inherits:
Object
  • Object
show all
Defined in:
lib/src.rb

Overview

This class represents a connection to the service manager for a InterBase database server instance.

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ ServiceManager

This is the constructor for the ServiceManager class.

Parameters

host

The name of the host supporting the service manager to be connected with.



1243
1244
# File 'lib/src.rb', line 1243

def initialize(host)
end

Instance Method Details

#connect(user, password) ⇒ Object

This method attaches a ServiceManager object to its host service. The user name used to connect with can affect which services can be accessed on the server.

Parameters

user

A string containing the user name to connect with.

password

A string containing the user password to connect with.



1256
1257
# File 'lib/src.rb', line 1256

def connect(user, password)
end

#connected?Boolean

This method is used to determine whether a ServiceManager object has been connected.

Returns:

  • (Boolean)


1271
1272
# File 'lib/src.rb', line 1271

def connected?
end

#disconnectObject

This method disconnects a previously connected ServiceManager object.



1263
1264
# File 'lib/src.rb', line 1263

def disconnect
end

#execute(*tasks) ⇒ Object

This method is used to batch execute a collection of task objects.

Parameters

tasks

One or more task objects to be executed by the service manager.

Exceptions

IBRubyException

Generated whenever this method is called on a

disconnected service manager or is a problem
occurs executing one of the tasks.


1286
1287
# File 'lib/src.rb', line 1286

def execute(*tasks)
end