[ Previous ] [ Index ] [ Next ]


Habanero.collobject
When you have a hablet with a custom arbitrator that handles locks and keys, you need a way to send it these lock requests. To do this you need to capture the instance of the arbitrator. This is done through your hablet's collobject instance.
Once you have the collobject simply call the method arbitrator which will return the instance of your hablet's arbitrator. The following example will show you how this is done.
| Example |
public Arbitrator getArbitrator(MirrorFrame mf)
{
Collobject c = mf.getCollobject(); Arbitrator a = c.arbitrator(); } |
Learn how to define new toolsDir attributes.
Habanero® is a registered trademark owned by The Board of Trustees of the University of Illinois. Copyright 1996-1998. All rights reserved. Java(TM) is a proprietary trademark owned by Sun Microsystems, Inc.
![]()
The National Center for Supercomputing Applications
University of Illinois at Urbana-Champaign
Contacts page