org.ocap.hn.content
Interface IOStatus


public interface IOStatus

This interface represents the ability to detect whether any asset represented by an object or its children is in use on the home network and hence the object should not be deleted.

ContentResource and ContentEntry objects representing local assets on a server SHALL implement IOStatus.


Method Summary
 boolean isInUse()
          Returns an indication of whether any asset within this object is in use on the home network.
 

Method Detail

isInUse

boolean isInUse()
Returns an indication of whether any asset within this object is in use on the home network. "In Use" is indicated if there is an active network transport protocol session (for example HTTP, RTSP) to the asset.

For objects which logically contain other objects, recursively iterates through all logical children of this object. For ContentContainer objects, recurses through all ContentEntry objects they contain. For NetRecordingEntry objects, iterates through all RecordingContentItem objects they contain.

Returns:
True if there is an active network transport protocol session to any asset that this ContentResource, ContentEntry, or any children of the ContentEntry contain, otherwise false.


Copyright © 2011. All Rights Reserved.