SunSPOT API V3.0


com.sun.spot.resourcesharing
Class ProxyResourceRegistryMaster

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

public class ProxyResourceRegistryMaster
extends Object


Field Summary
static String RESOURCE_REGISTRY_SERVER
           
 
Constructor Summary
ProxyResourceRegistryMaster()
           
 
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
 

Field Detail

RESOURCE_REGISTRY_SERVER

public static final String RESOURCE_REGISTRY_SERVER
See Also:
Constant Field Values
Constructor Detail

ProxyResourceRegistryMaster

public ProxyResourceRegistryMaster()
Method Detail

lock

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

register

public void register(String resourceName)

unlock

public void unlock(int isolateId,
                   String resourceName,
                   ResourceSharingScheme scheme)

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.