Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> file server charges</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 File server charges
------------------------------------------------------------------------------
 File servers can submit charges for connection time, requests made, blocks
 read, blocks written, and disk storage. The following accounting bindery
 properties describe these charges.

 CONNECT_TIME Property

 This property designates the amount the file server will charge for connect
 time. Connect time is measured from the time the user logs in until the
 time the user logs out. The user's account is checked each half hour. If
 the account balance falls below the lowest permissible balance, the user is
 disconnected following 5-minute and 1-minute warnings.

 REQUESTS_MADE Property

 This property designates the amount the file server will charge for
 requests made to the file server. After logging out, the user can be
 charged for the total number of requests submitted to the file server since
 logging in. While the user is logged in, the user's account is checked each
 half hour. If the account balance falls below the lowest permissible
 balance, the user is disconnected following 5-minute and 1-minute warnings.

 BLOCKS_READ Property

 This property designates the amount the file server will charge for blocks
 read. After logging out, the user can be charged for the number of blocks
 read since logging in. While the user is logged in, the user's account is
 checked each half hour. If the account balance falls below the lowest
 permissible balance, the user is disconnected following 5-minute and
 1-minute warnings.

 BLOCKS_WRITTEN Property

 This property designates the amount the file server will charge for blocks
 written. After logging out, the user can be charged for the number of
 blocks written from disk since logging in. While the user is logged in, the
 user's account is checked each half hour. If the account balance falls
 below the lowest permissible balance, the user is disconnected following
 5-minute and 1-minute warnings.

 DISK_STORAGE Property

 This property designates the amount the file server can charge for disk
 storage. The charge is computed at regular intervals as follows:

 .  The total disk storage for each user is calculated.
 .  Total disk storage is multiplied by the number of half hours since
 the last disk storage charge was made.
 .  The result is multiplied by the current charge rate.

 BINDERY Property Data Structures

 The file server maintains a schedule of charges for its services in bindery
 property structures. The amount of the charges can be varied at half-hour
 intervals according to the day of the week.

 Charges for Connection Time, Requests Made, Blocks Read, and Blocks Written

 Charges for connection time, requests made and blocks read and written are
 maintained in the CONNECT_TIME, REQUESTS_MADE, BLOCKS_READ and
 BLOCKS_WRITTEN properties. These properties have the same data structure.

 Data Structure Fields

 Data Structure

 Offset   Field                       Type     Order
   0   Time of Next Charge            long     high-low
   4   Current Charge Rate Multiplier WORD     high-low
   6   Current Charge Rate Divisor    WORD     high-low
   8   Days Charge Occurs Mask 1      BYTE[1]
   9   Time Charge Occurs 1           BYTE[1]
  10   Charge Rate Multiplier 1       WORD     high-low
  12   Charge Rate Divisor 1          WORD     high-low
    .  .  .
    .  .  .
 122   Days Charge Occurs Mask 20     BYTE[1]
 123   Time Charge Occurs 20          BYTE[1]
 124   Charge Rate Multiplier 20      WORD     high-low
 126   Charge Rate Divisor 20         WORD     high-low

 Time of Next Charge

 This field contains the time of the next charge. Time is measured in
 minutes since January 1, 1985.

 Current Charge Rate Multiplier and Divisor

 These fields contain the Current Charge Rate Multiplier and Divisor. The
 charge is computed as follows:

 .  The unit of service (connect time, requests made, blocks read, or
 blocks written) is multiplied by the Current Charge Rate Multiplier.
 .  The resulting value is decided by the Current Charge Rate divisor
 to give the charge made against the user's account.

 Days Charge Occurs Mask

 This field contains a bit mask that specifies the days of the week for
 which the charge rate applies. If the bit corresponding to the day of the
 week is set (bit 0 = Saturday), the charge is made during that day at the
 half hour specified in Time Charge Occurs. If this field is zero, no
 charges are made.

 Time Charge Occurs

 This field contains the half hour (12am = 0, ..., 11.30pm = 47) during
 which the specified charge rate takes effect. These changes in the charge
 rate are listed in this property structure according to increasing half
 hours.

 Charge Rate Multiplier and Divisor

 These fields contain the charge rate that takes effect at the specified
 time.

 Charges For Disk Storage

 Charges for disk storage are maintained in the DISK_STORAGE property. It is
 shown last.

 Data Structure Fields

 DISK_STORAGE Structure

 Offset   Field                   Type     Order
   0   Time of Next Charge        long     high-low
   4   Time of Previous Charge    WORD     high-low
   8   Days Charge Occurs Mask 1  BYTE[1]
   9   Time Charge Occurs 1       BYTE[1]
  10   Charge Rate Multiplier 1   WORD     high-low
  12   Charge Rate Divisor 1      WORD     high-low
    .  .  .
    .  .  .
    .  .  .
 122   Days Charge Occurs Mask 20 BYTE[1]
 123   Time Charge Occurs 20      BYTE[1]
 124   Charge Rate Multipier 20   WORD     high-low
 126   Charge Rate Divisor 20     WORD     high-low

 Time of Next Charge

 This field contains the time of the next charge. Time is measured in
 minutes since January 1, 1985.

 Time of previous charge

 This field contains the time of the previous charge. Time is measured in
 minutes since January 1, 1985.

 Days Charge Occurs Mask

 This field contains a bit mask that specifies the days of the week for
 which the charge rate applies. If the bit corresponding to the day of the
 week is set (bit 0= Sunday, ..., bit 6 = Saturday), the charge is made
 during that day at the half hour specified in Time Charge Occurs. If this
 field is zero, no charges are made.

 Time Charge Occurs

 This field contains the half hour (12am, ..., 11.30pm = 47) during which
 the specified charge rate takes effect. These changes in the charge rate
 are listed in the property structure according to the increasing half
 hours.

 Charge Rate Multiplier and Divisor

 These fields contain the charge rate used to calculate the disk storage
 charge at the specified half hour on the specified days. The charge is
 computed as follows:

 .  The current disk storage for each user is calculated in blocks.
 .  Current disk storage is multiplied by the number of half hours
 since the last disk storage charge was made.
 .  The result is multiplied by the charge rate multiplier and decided
 by the charge rate divisor to produce the final disk storage charge.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson