SunSPOT API V3.0


com.sun.spot.resourcesharing
Class ResourceRegistryMaster

java.lang.Object
  extended by com.sun.spot.resourcesharing.ResourceRegistryMaster

public class ResourceRegistryMaster
extends Object


Constructor Summary
ResourceRegistryMaster()
           
 
Method Summary
 void adjustLock(int isolateId, String resourceName, ResourceSharingScheme oldScheme, ResourceSharingScheme newScheme)
           
 boolean lock(int isolateId, String resourceName, ResourceSharingScheme scheme)
           
 void register(String resourceName)
           
 void unlock(int isolateId, String resourceName, ResourceSharingScheme scheme)
           
 void unlockAllResourcesHeldByIsolate(int isolateId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceRegistryMaster

public ResourceRegistryMaster()
Method Detail

register

public void register(String resourceName)
              throws ResourceSharingException
Throws:
ResourceSharingException

unlock

public void unlock(int isolateId,
                   String resourceName,
                   ResourceSharingScheme scheme)
            throws ResourceSharingException
Throws:
ResourceSharingException

lock

public boolean lock(int isolateId,
                    String resourceName,
                    ResourceSharingScheme scheme)
             throws ResourceUnavailableException
Throws:
ResourceUnavailableException

unlockAllResourcesHeldByIsolate

public void unlockAllResourcesHeldByIsolate(int isolateId)

adjustLock

public void adjustLock(int isolateId,
                       String resourceName,
                       ResourceSharingScheme oldScheme,
                       ResourceSharingScheme newScheme)
                throws ResourceUnavailableException
Throws:
ResourceUnavailableException

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.