public interface DetachableStorageOption extends StorageOption
UNSUPPORTED_FORMAT
or UNINITIALIZED
. When the StorageProxy is in one of these two
states, the initialize method must be called before the device can be used.Modifier and Type | Method and Description |
---|---|
boolean |
isDetachable()
Determines whether the device associated with this storage proxy is ready to be
detached.
|
void |
makeDetachable()
Makes the device safe to be detached.
|
void |
makeReady()
Makes the device ready for use.
|
boolean isDetachable()
void makeDetachable() throws IOException
OFFLINE
. The latter indicates that the
device may be brought back online. If it is removed from the database, attempts to
use the storage proxy result in an IOException.
SecurityException
- if the calling application does not have
MonitorAppPermission("storage").IOException
- if the system is unable to make the device safe to detach.void makeReady() throws IOException
OFFLINE
state, this method attempts to activate the
device and make it available. For example, a device may be left in an OFFLINE state
after it has been made ready to detach, but not actually unplugged. This method has
no effect if the device is already in the READY
state.SecurityException
- if the calling application does not have
MonitorAppPermission("storage").IOException
- if the device was not in the READY or OFFLINE state when the
method was called.Copyright © 2013 CableLabs. All rights reserved.