org.firebirdsql.management
Class FBServiceManager
java.lang.Object
org.firebirdsql.management.FBServiceManager
- ServiceManager
public class FBServiceManager
extends java.lang.Object
An implementation of the basic Firebird Service API functionality.
FBServiceManager() - Create a new instance of
FBServiceManager based on
the default GDSType.
|
FBServiceManager(String gdsType) - Create a new instance of
FBServiceManager based on
a given GDSType.
|
FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType) - Create a new instance of
FBServiceManager based on
a given GDSType.
|
BUFFER_SIZE
public static final int BUFFER_SIZE
FBServiceManager
protected FBServiceManager()
Create a new instance of FBServiceManager
based on
the default GDSType.
FBServiceManager
protected FBServiceManager(String gdsType)
Create a new instance of FBServiceManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVE
FBServiceManager
protected FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of FBServiceManager
based on
a given GDSType.
gdsType
- The GDS implementation type to use
createRequestBuffer
protected ServiceRequestBuffer createRequestBuffer(int operation,
int options)
Build up a request buffer for the specified operation.
operation
- The isc_action_svc_* operationoptions
- The options bitmask for the request buffer
executeServicesOperation
protected void executeServicesOperation(ServiceRequestBuffer srb)
throws FBSQLException
Execute a Services API operation in the database. All output from the
operation is sent to this ServiceManager
's logger.
srb
- The buffer containing the task request
FBSQLException
- if a database access error occurs or
incorrect parameters are supplied
getDatabase
public String getDatabase()
Returns the database path for the connection to the service manager.
- getDatabase in interface ServiceManager
- the database path for the connection to the service manager.
getGds
public GDS getGds()
Get
GDS
implementation depending on the type specified
during instantiation.
getServiceName
public String getServiceName()
getUser
public String getUser()
Get name of the user that performs the operation.
- getUser in interface ServiceManager
- name of the user that performs the operation.
setDatabase
public void setDatabase(String database)
Sets the database path for the connection to the service manager.
- setDatabase in interface ServiceManager
database
- path for the connection to the service manager.
setUser
public void setUser(String user)
Set the name of the user that performs the operation.
- setUser in interface ServiceManager
Copyright B) 2001 David Jencks and other authors. All rights reserved.