com.sun.spot.resourcesharing
Class ResourceRegistryMaster
java.lang.Object
com.sun.spot.resourcesharing.ResourceRegistryMaster
public class ResourceRegistryMaster
- extends Object
ResourceRegistryMaster
public ResourceRegistryMaster()
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
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.