Switch to: V13V12V11V10V9V8V7V6V5

VServer Class: Connection Methods

VServer.CancelConnection()

Declaration:

CancelConnection( inConnectionID as Integer )

Parameters:

  • inConnectionID - The connection ID.

Description:

Cancels an existing connection by its ID.

Example:

server.CancelConnection( connID )

VServer.Restart()

Declaration:

Restart()

Description:

Forces a restart of the VServer.

Example:

server.Restart()

VServer.Refresh()

Declaration:

Refresh()

Description:

This method allows you to refresh the list of DatabaseInfo objects. This method sends a request to the Valentina Server.

Example:

server.Refresh()	

VServer.Shutdown()

Declaration:

Shutdown()

Description:

Shuts down the VServer.

Note: After this operation there is no way to restart VServer from the application. If you want to restart the VServer, use Restart().

Example:

server.Shutdown()

VServer.GetState()

Declaration:

GetState()

Description:

The client-based cursor consists of two columns: client-id and state.

Zero client-id means “scheduler task” because scheduler runs own tasks directly in vKernel.

State is a text field, that contains the current state description for a particular client. Usually, it is “Available”, which means - vServer does not perform any task for the particular client at the moment, or text of some SQL otherwise.

Example:

cursor = server.GetState()