[ 
https://issues.apache.org/jira/browse/OAK-4712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15444717#comment-15444717
 ] 

Amit Jain commented on OAK-4712:
--------------------------------

bq. Current implementation uses a local file path but I have been wondering if 
it should be an OAK path.
Yes the user is not aware of the local file path which is an implementation 
detail and can change. So, it should be the repository path.

bq. For the request to query the sync state of a file, when converting from the 
externally-supplied file name to an internal DataIdentifier
As confirmed above, the file path is not an external file system path but the 
repository path. To get to the actual binary property and retrieve internal 
node id you would have to use the NodeStore API and retrieve any binary 
property given a node e.g. for SegmentNodeStore
{code}
PropertyState propState = 
nodeStore.getRoot().getChildNode("c0").getProperty("x");
if (propState.getType() == Type.BINARY) {
    SegmentBlob blob = (SegmentBlob) propState.getValue(propState.getType());
    String id = blob.getBlobId()
}
{code}



> Publish S3DataStore stats in JMX MBean
> --------------------------------------
>
>                 Key: OAK-4712
>                 URL: https://issues.apache.org/jira/browse/OAK-4712
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: blob
>            Reporter: Matt Ryan
>         Attachments: OAK-4712.2.diff
>
>
> This feature is to publish statistics about the S3DataStore via a JMX MBean.  
> There are two statistics suggested:
> * Indicate the number of files actively being synchronized from the local 
> cache into S3
> * Given a path to a local file, indicate whether synchronization of file into 
> S3 has completed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to