ch.systemsx.cisd.openbis.dss.generic.shared.content
Class RemoteHierarchicalContentNode
java.lang.Object
ch.systemsx.cisd.openbis.dss.generic.shared.content.RemoteHierarchicalContentNode
- All Implemented Interfaces:
- ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
public class RemoteHierarchicalContentNode
- extends java.lang.Object
- implements ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
A node of hierarchical content that stored on a remote datastore server. If file content is
queried, it is downloaded to session workspace and cached there.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteHierarchicalContentNode
public RemoteHierarchicalContentNode(ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation dataSetetLocation,
DataSetPathInfo path,
ch.systemsx.cisd.openbis.dss.generic.shared.ISingleDataSetPathInfoProvider provider,
IDssServiceRpcGenericFactory serviceFactory,
ch.systemsx.cisd.common.server.ISessionTokenProvider sessionTokenProvider,
IContentCache contentCache)
getName
public java.lang.String getName()
- Specified by:
getName
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getRelativePath
public java.lang.String getRelativePath()
- Specified by:
getRelativePath
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getParentRelativePath
public java.lang.String getParentRelativePath()
- Specified by:
getParentRelativePath
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
exists
public boolean exists()
- Specified by:
exists
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getFileLength
public long getFileLength()
throws java.lang.UnsupportedOperationException
- Specified by:
getFileLength
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
getChecksumCRC32
public int getChecksumCRC32()
throws java.lang.UnsupportedOperationException
- Specified by:
getChecksumCRC32
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
isChecksumCRC32Precalculated
public boolean isChecksumCRC32Precalculated()
- Specified by:
isChecksumCRC32Precalculated
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getChildNodes
public java.util.List<ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode> getChildNodes()
throws java.lang.UnsupportedOperationException
- Specified by:
getChildNodes
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
getFile
public java.io.File getFile()
throws java.lang.UnsupportedOperationException
- Specified by:
getFile
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
tryGetFile
public java.io.File tryGetFile()
- Specified by:
tryGetFile
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
getFileContent
public ch.systemsx.cisd.base.io.IRandomAccessFile getFileContent()
throws java.lang.UnsupportedOperationException,
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Specified by:
getFileContent
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
getInputStream
public java.io.InputStream getInputStream()
throws java.lang.UnsupportedOperationException,
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Specified by:
getInputStream
in interface ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode
- Throws:
java.lang.UnsupportedOperationException
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
close
public void close()