Class: Rubyfb::ServiceManager

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

Overview

This class represents a connection to the service manager for a Firebird database server instance. NOTE: This class does not currently work on the Mac OS X platform.

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.



1319
1320
# File 'lib/src.rb', line 1319

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.



1332
1333
# File 'lib/src.rb', line 1332

def connect(user, password)
end

#connected?Boolean

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

Returns:

  • (Boolean)


1347
1348
# File 'lib/src.rb', line 1347

def connected?
end

#disconnectObject

This method disconnects a previously connected ServiceManager object.



1339
1340
# File 'lib/src.rb', line 1339

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

FireRubyException

Generated whenever this method is called on a disconnected service manager or is a problem occurs executing one of the tasks.



1362
1363
# File 'lib/src.rb', line 1362

def execute(*tasks)
end