JanosVM v1.0 API

edu.utah.janosvm.resources
Class IOResource

java.lang.Object
  |
  +--edu.utah.janosvm.resources.IOResource

public final class IOResource
extends java.lang.Object

Provides java level access to the current team's IO resource.


Field Summary
static int ACCOUNT_DISK
          The disk account.
static int ACCOUNT_IPC
          The interprocess communication account.
static int ACCOUNT_NETWORK
          The network account.
static int ACCOUNT_NETWORK_PACKET
          The network packet account.
 
Constructor Summary
private IOResource()
          Its a static only class.
 
Method Summary
(package private) static void ()
           
static void change(int account, IOSpec is)
           
static long getIn(int account)
           
static long getOut(int account)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait, wait0
 

Field Detail

ACCOUNT_IPC

public static final int ACCOUNT_IPC
The interprocess communication account.

ACCOUNT_DISK

public static final int ACCOUNT_DISK
The disk account.

ACCOUNT_NETWORK

public static final int ACCOUNT_NETWORK
The network account.

ACCOUNT_NETWORK_PACKET

public static final int ACCOUNT_NETWORK_PACKET
The network packet account.
Constructor Detail

IOResource

private IOResource()
Its a static only class.
Method Detail

static void ()

change

public static void change(int account,
                          IOSpec is)
                   throws ResourceSpecException
Parameters:
is - The new IOSpec for this team.

getIn

public static long getIn(int account)
Parameters:
account - The IO account type.
Returns:
The number of bytes/packets read by this team in the given account.

getOut

public static long getOut(int account)
Parameters:
account - The IO account type.
Returns:
The number of bytes/packets generated by this team in the given account.

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003