IInfoBaseConnectionInfo

Properties:

AppID
blockedByDBMS
bytesAll
bytesLast5Min
callsAll
callsLast5Min
ConnectedAt
ConnID
dbConnMode
dbmsBytesAll
dbmsBytesLast5Min
dbProcInfo
dbProcTook
dbProcTookAt
durationAll
durationAllDBMS
durationCurrent
durationCurrentDBMS
durationLast5Min
durationLast5MinDBMS
HostName
IBConnMode
InBytesAll
InBytesCurrent
InBytesLast5Min
MemoryAll
MemoryCurrent
MemoryLast5Min
OutBytesAll
OutBytesCurrent
OutBytesLast5Min
ThreadMode
UserName

Description:

Contains parameters of a single connection of the client application to the Infobase on the 1C:Enterprise server cluster. It represents an object with the IInfoBaseConnectionInfo interface.

Availability:

Integration.

Example:

Rem Delete all connections(example uses VBScript):
Set connector = CreateObject("V83.COMConnector")
Set ragent = connector.ConnectAgent("CentralServer")
ragent.AuthenticateAgent "CentralAdminName", "Password"
clusters = ragent.GetClusters()
Set cluster = clusters(0)
ragent.Authenticate cluster, "ClusterAdminName", "Password"
processes = ragent.GetWorkingProcesses(cluster)
Set process0 = processes(0)
WorkingAddress = process0.HostName  ":"  process0.MainPort
Set server = connector.ConnectWorkingProcess(WorkingAddress)
server.AddAuthentication "InfoBaseUserName", "Password"
Set ibDesc = server.CreateInfoBaseInfo()
ibDesc.Name = "InfoBaseName"
connections = server.GetInfoBaseConnections(ibDesc)
Dim i
For = LBound(connections) To UBound(connections)
    set connection = connections(i)
    server.Disconnect connection
Next

See also:

IWorkingProcessConnection, method Disconnect

    

1C:Enterprise Developer's Community