Package gofer :: Package rmi :: Module tracker :: Class Tracker
[hide private]
[frames] | no frames]

Class Tracker

source code

object --+
         |
        Tracker

Request tracker used to track information about active RMI requests.

Nested Classes [hide private]
  __metaclass__
Singleton metaclass usage: __metaclass__ = Singleton
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add(*args, **kwargs)
Add a serial number (make know) for tracking.
source code
list
find(*args, **kwargs)
Find serial numbers matching user defined (any) data.
source code
str
cancel(*args, **kwargs)
Notify the tracker that an RMI request has been cancelled.
source code
bool
cancelled(*args, **kwargs)
Get whether an RMI request has been cancelled.
source code
 
remove(*args, **kwargs)
Discontinue tracking an RMI request.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
set __all
All known requests by serial number.
set __cancelled
Cancelled requests.
RLock __mutex
The object mutex.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

add(*args, **kwargs)

source code 

Add a serial number (make know) for tracking.

Parameters:
  • sn (str) - An RMI serial number.
  • locator (object) - The object used by find() to match on RMI requests.
Decorators:
  • @synchronized

find(*args, **kwargs)

source code 

Find serial numbers matching user defined (any) data.

Parameters:
Returns: list
The list of matching serial numbers.
Decorators:
  • @synchronized

cancel(*args, **kwargs)

source code 

Notify the tracker that an RMI request has been cancelled.

Parameters:
  • sn (str) - An RMI serial number.
Returns: str
The cancelled serial number (if not already cancelled).
Decorators:
  • @synchronized

cancelled(*args, **kwargs)

source code 

Get whether an RMI request has been cancelled.

Parameters:
  • sn (str) - An RMI serial number.
Returns: bool
True if cancelled.
Decorators:
  • @synchronized

remove(*args, **kwargs)

source code 

Discontinue tracking an RMI request.

Parameters:
  • sn (str) - An RMI serial number.
Decorators:
  • @synchronized