public interface JPADriftServerLocal
| 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.
|
int |
purgeOrphanedDriftFiles(org.rhq.core.domain.auth.Subject subject,
long purgeMillis)
SUPPORTS JPA DRIFT SERVER PLUGIN
This will remove all drift files that are no longer referenced by drift entries.
|
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.
|
org.rhq.core.domain.drift.JPADriftFile getDriftFile(org.rhq.core.domain.auth.Subject subject,
String sha256)
subject - sha256 - 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)
subject - criteria - 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)
subject - criteria - String persistChangeSet(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.drift.DriftChangeSet<?> changeSet)
String copyChangeSet(org.rhq.core.domain.auth.Subject subject, String changeSetId, int driftDefId, int resourceId)
org.rhq.core.domain.drift.JPADriftFile persistDriftFile(org.rhq.core.domain.drift.JPADriftFile driftFile)
throws Exception
driftFile - Exceptionvoid persistDriftFileData(org.rhq.core.domain.drift.JPADriftFile driftFile,
InputStream data,
long numBytes)
throws Exception
driftFile - data - ExceptionDriftChangeSetSummary storeChangeSet(org.rhq.core.domain.auth.Subject subject, int resourceId, File changeSetZip) throws Exception
resourceId - The resource for which the change-set is being reported.changeSetZip - The change-set zip fileExceptionDriftChangeSetSummary storeChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject, int resourceId, File changeSetZip, List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest, Headers[] headers) throws Exception
Exceptionvoid ackChangeSetInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int resourceId,
Headers headers,
List<org.rhq.core.domain.drift.JPADriftFile> driftFilesToRequest)
throws Exception
Exceptionvoid storeFiles(org.rhq.core.domain.auth.Subject subject,
File filesZip)
throws Exception
filesZip - The change-set zip fileExceptionvoid purgeByDriftDefinitionName(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String driftDefName)
throws Exception
Exceptionint purgeOrphanedDriftFiles(org.rhq.core.domain.auth.Subject subject,
long purgeMillis)
subject - purgeMillis - byte[] getDriftFileAsByteArray(String hash)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.