Interface ICommitDelegator
-
- All Known Subinterfaces:
IOptionsServer
,IServer
,IStreamingServer
- All Known Implementing Classes:
CommitDelegator
,NtsServerImpl
,OneShotServerImpl
,RpcServer
,Server
public interface ICommitDelegator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getBlobObject(java.lang.String repo, java.lang.String sha)
Usage: cat-file -n {repo} blob {object-sha}ICommit
getCommitObject(java.lang.String sha)
Usage: cat-file commit {object-sha}ICommit
getCommitObject(java.lang.String sha, java.lang.String repo)
Usage: cat-file -n {repo} commit {object-sha}java.util.List<ICommit>
getGraphCommitLogList(GraphCommitLogOptions options)
Usage: log -n {repo} {object-sha}IGraphObject
getGraphObject(java.lang.String sha)
Usage: cat-file -t {object-sha}
-
-
-
Method Detail
-
getCommitObject
ICommit getCommitObject(java.lang.String sha) throws P4JavaException
Usage: cat-file commit {object-sha}(requires 'super' permission)
- Parameters:
sha
- graph SHA- Returns:
- graph commit object
- Throws:
P4JavaException
- API error
-
getCommitObject
ICommit getCommitObject(java.lang.String sha, java.lang.String repo) throws P4JavaException
Usage: cat-file -n {repo} commit {object-sha}- Parameters:
sha
- graph SHArepo
- graph repo- Returns:
- graph commit object
- Throws:
P4JavaException
- API error
-
getBlobObject
java.io.InputStream getBlobObject(java.lang.String repo, java.lang.String sha) throws P4JavaException
Usage: cat-file -n {repo} blob {object-sha}- Parameters:
sha
- graph SHArepo
- graph repo- Returns:
- InputStream of the graph file
- Throws:
P4JavaException
- API error
-
getGraphObject
IGraphObject getGraphObject(java.lang.String sha) throws P4JavaException
Usage: cat-file -t {object-sha}- Parameters:
sha
- graph SHA- Returns:
- graph object
- Throws:
P4JavaException
- API error
-
getGraphCommitLogList
java.util.List<ICommit> getGraphCommitLogList(GraphCommitLogOptions options) throws P4JavaException
Usage: log -n {repo} {object-sha}- Parameters:
options
- graph log options- Returns:
- list of commit objects
- Throws:
P4JavaException
- API error
-
-