public class JPADriftServerBean extends Object implements JPADriftServerLocal
| Constructor and Description |
|---|
JPADriftServerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
ackChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int resourceId,
Headers headers,
List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest)
For transactioning purposes only, part of storeChangeSet impl.
|
String |
copyChangeSet(org.rhq.core.domain.auth.Subject subject,
String changeSetId,
int driftDefId,
int resourceId) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.JPADriftChangeSet> |
findDriftChangeSetsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftChangeSetCriteria criteria)
Standard criteria based fetch method
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftComposite> |
findDriftCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.JPADrift> |
findDriftsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria)
Standard criteria based fetch method
|
org.rhq.core.domain.drift.JPADriftFile |
getDriftFile(org.rhq.core.domain.auth.Subject subject,
String sha256)
Simple get method for a JPADriftFile.
|
byte[] |
getDriftFileAsByteArray(String hash) |
String |
getDriftFileBits(String hash) |
String |
persistChangeSet(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.DriftChangeSet<?> changeSet) |
org.rhq.core.domain.drift.JPADriftFile |
persistDriftFile(org.rhq.core.domain.drift.JPADriftFile driftFile)
SUPPORTS JPA DRIFT SERVER PLUGIN
|
void |
persistDriftFileData(org.rhq.core.domain.drift.JPADriftFile driftFile,
InputStream data,
long numBytes)
SUPPORTS JPA DRIFT SERVER PLUGIN
|
void |
purgeByDriftDefinitionName(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String driftDefName)
SUPPORTS JPA DRIFT SERVER PLUGIN
This is for internal use only - do not call it unless you know what you are doing.
|
DriftChangeSetSummary |
storeChangeSet(org.rhq.core.domain.auth.Subject subject,
int resourceId,
File changeSetZip)
This method stores the provided change-set file for the resource.
|
DriftChangeSetSummary |
storeChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int resourceId,
File changeSetZip,
List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest,
Headers[] headers)
For transactioning purposes only, part of storeChangeSet impl.
|
void |
storeFiles(org.rhq.core.domain.auth.Subject subject,
File filesZip)
This method stores the provided drift files.
|
public void purgeByDriftDefinitionName(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String driftDefName)
throws Exception
JPADriftServerLocalpurgeByDriftDefinitionName in interface JPADriftServerLocalExceptionpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.JPADriftChangeSet> findDriftChangeSetsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftChangeSetCriteria criteria)
JPADriftServerLocalfindDriftChangeSetsByCriteria in interface JPADriftServerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftComposite> findDriftCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria)
findDriftCompositesByCriteria in interface JPADriftServerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.JPADrift> findDriftsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria)
JPADriftServerLocalfindDriftsByCriteria in interface JPADriftServerLocalpublic String persistChangeSet(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.drift.DriftChangeSet<?> changeSet)
persistChangeSet in interface JPADriftServerLocalpublic String copyChangeSet(org.rhq.core.domain.auth.Subject subject, String changeSetId, int driftDefId, int resourceId)
copyChangeSet in interface JPADriftServerLocalpublic org.rhq.core.domain.drift.JPADriftFile getDriftFile(org.rhq.core.domain.auth.Subject subject,
String sha256)
JPADriftServerLocalgetDriftFile in interface JPADriftServerLocalpublic org.rhq.core.domain.drift.JPADriftFile persistDriftFile(org.rhq.core.domain.drift.JPADriftFile driftFile)
JPADriftServerLocalpersistDriftFile in interface JPADriftServerLocalpublic void persistDriftFileData(org.rhq.core.domain.drift.JPADriftFile driftFile,
InputStream data,
long numBytes)
throws Exception
JPADriftServerLocalpersistDriftFileData in interface JPADriftServerLocalExceptionpublic DriftChangeSetSummary storeChangeSet(org.rhq.core.domain.auth.Subject subject, int resourceId, File changeSetZip) throws Exception
JPADriftServerLocalstoreChangeSet in interface JPADriftServerLocalresourceId - The resource for which the change-set is being reported.changeSetZip - The change-set zip fileExceptionpublic DriftChangeSetSummary storeChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject, int resourceId, File changeSetZip, List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest, Headers[] headers) throws Exception
JPADriftServerLocalstoreChangeSetInNewTransaction in interface JPADriftServerLocalExceptionpublic void ackChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int resourceId,
Headers headers,
List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest)
throws Exception
JPADriftServerLocalackChangeSetInNewTransaction in interface JPADriftServerLocalExceptionpublic void storeFiles(org.rhq.core.domain.auth.Subject subject,
File filesZip)
throws Exception
JPADriftServerLocalstoreFiles in interface JPADriftServerLocalfilesZip - The change-set zip fileExceptionpublic String getDriftFileBits(String hash)
getDriftFileBits in interface JPADriftServerLocalpublic byte[] getDriftFileAsByteArray(String hash)
getDriftFileAsByteArray in interface JPADriftServerLocalCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.