|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.firebirdsql.management.FBServiceManager
public class FBServiceManager
An implementation of the basic Firebird Service API functionality.
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
|
| Constructor Summary | |
|---|---|
protected |
FBServiceManager()
Create a new instance of FBServiceManager based on
the default GDSType. |
protected |
FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of FBServiceManager based on
a given GDSType. |
protected |
FBServiceManager(java.lang.String gdsType)
Create a new instance of FBServiceManager based on
a given GDSType. |
| Method Summary | |
|---|---|
IscSvcHandle |
attachServiceManager(GDS gds)
|
protected ServiceRequestBuffer |
createRequestBuffer(int operation,
int options)
Build up a request buffer for the specified operation. |
void |
detachServiceManager(GDS gds,
IscSvcHandle handle)
|
protected void |
executeServicesOperation(ServiceRequestBuffer srb)
Execute a Services API operation in the database. |
java.lang.String |
getDatabase()
Returns the database path for the connection to the service manager. |
GDS |
getGds()
Get GDS implementation depending on the type specified
during instantiation. |
java.lang.String |
getHost()
Returns the host for the connection to the service manager. |
java.io.OutputStream |
getLogger()
Returns the logger for the connection to the service manager. |
java.lang.String |
getPassword()
Returns the password for the connection to the service manager. |
int |
getPort()
Returns the port for the connection to the service manager. |
java.lang.String |
getServiceName()
|
java.lang.String |
getUser()
Get name of the user that performs the operation. |
void |
queueService(GDS gds,
IscSvcHandle handle)
|
void |
setDatabase(java.lang.String database)
Sets the database path for the connection to the service manager. |
void |
setHost(java.lang.String host)
Sets the host for the connection to the service manager. |
void |
setLogger(java.io.OutputStream logger)
Sets the logger for the connection to the service manager. |
void |
setPassword(java.lang.String password)
Sets the password for the connection to the service manager. |
void |
setPort(int port)
Sets the port for the connection to the service manager. |
void |
setUser(java.lang.String user)
Set the name of the user that performs the operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_SIZE
| Constructor Detail |
|---|
protected FBServiceManager()
FBServiceManager based on
the default GDSType.
protected FBServiceManager(java.lang.String gdsType)
FBServiceManager based on
a given GDSType.
gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEprotected FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType)
FBServiceManager based on
a given GDSType.
gdsType - The GDS implementation type to use| Method Detail |
|---|
public void setUser(java.lang.String user)
setUser in interface ServiceManageruser - name of the user.public java.lang.String getUser()
getUser in interface ServiceManagerpublic void setPassword(java.lang.String password)
ServiceManager
setPassword in interface ServiceManagerpassword - The password to set.public java.lang.String getPassword()
ServiceManager
getPassword in interface ServiceManagerpublic void setDatabase(java.lang.String database)
ServiceManager
setDatabase in interface ServiceManagerdatabase - path for the connection to the service manager.public java.lang.String getDatabase()
ServiceManager
getDatabase in interface ServiceManagerpublic java.lang.String getHost()
ServiceManager
getHost in interface ServiceManagerpublic void setHost(java.lang.String host)
ServiceManager
setHost in interface ServiceManagerhost - The host to set.public int getPort()
ServiceManager
getPort in interface ServiceManagerpublic void setPort(int port)
ServiceManager
setPort in interface ServiceManagerport - The port to set.public java.io.OutputStream getLogger()
ServiceManager
getLogger in interface ServiceManagerpublic void setLogger(java.io.OutputStream logger)
ServiceManager
setLogger in interface ServiceManagerlogger - The out to set.public GDS getGds()
GDS implementation depending on the type specified
during instantiation.
GDS.public java.lang.String getServiceName()
public IscSvcHandle attachServiceManager(GDS gds)
throws GDSException
GDSException
public void detachServiceManager(GDS gds,
IscSvcHandle handle)
throws GDSException
GDSException
public void queueService(GDS gds,
IscSvcHandle handle)
throws GDSException,
FBSQLException,
java.io.IOException
GDSException
FBSQLException
java.io.IOException
protected void executeServicesOperation(ServiceRequestBuffer srb)
throws FBSQLException
ServiceManager's logger.
srb - The buffer containing the task request
FBSQLException - if a database access error occurs or
incorrect parameters are supplied
protected ServiceRequestBuffer createRequestBuffer(int operation,
int options)
operation - The isc_action_svc_* operationoptions - The options bitmask for the request buffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||