9.7 FileStat Object

Provides individual file statistics such as:

9.7.1 BytesRead property

Returns the number of bytes read from files.

Syntax

object.BytesRead

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes read from files.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.BytesRead) &" bytes were read from the files"

9.7.2 BytesWritten property

Returns the number of bytes written to files.

Syntax

object.BytesWritten

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes written to files.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.BytesWritten) &" bytes were written to the files"

9.7.3 Creates property

Returns the number of file creation operations that have occurred during a specific period.

Syntax

object.Creates

Type

Long.

Attributes

Read-only.

Example

This example returns the number of file creation operations.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Creates) &" of file creation operations have been performed"

9.7.4 Deletes property

Returns the number of file deletion operations that have occurred during a specific period.

Syntax

object.Deletes

Type

Long.

Attributes

Read-only.

Example

This example returns the number of file deletion operations.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Deletes) &" of file deletion operations have been performed"

9.7.5 Opens property

Returns the number of file open operations that have occurred during a specific period.

Syntax

object.Opens

Type

Long.

Attributes

Read-only.

Example

This Opens example returns the number of file open operations.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Opens) &" of file open operations have been performed"

9.7.6 Reads property

Returns the number of file read operations that have occurred during a specific period.

Syntax

object.Reads

Type

Long.

Attributes

Read-only.

Example

This example returns the number of file read operations.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Reads) &" of file read operations have been performed"

9.7.7 RecordLocks property

Returns the number of record locks that have occurred since the server was booted.

Syntax

object.RecordLocks

Type

Long.

Attributes

Read-only.

Example

This example returns the number of record locks that have occurred since the server was booted.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.RecordLocks) &" of record lock operations have occurred"

9.7.8 Renames property

Returns the number of file rename operations that have occurred during a specific period.

Syntax

object.Renames

Type

Long.

Attributes

Read-only.

Example

This example returns the number of file rename operations.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Renames) &" of file rename operations have been performed"

9.7.9 Transactions property

Returns the number of transactions processed by the server during a specified period.

Syntax

object.Transactions

Type

Long.

Attributes

Read-only.

Example

This example returns the number of transactions that have occurred.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Transactions) &" of transactions have occurred"

9.7.10 Writes property

Returns the number of file write operations that have occurred during a specified period.

Syntax

object.Writes

Type

Long.

Attributes

Read-only.

Example

This Writes example returns the number of file write operations that have occurred.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.filestat 
     print (statobj.Writes) &" of file write operations have occurred"