Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

Stardust/Knowledge Base/Java API/Queries/Partitions

Listing the Partitions in a multi-partition Audit Trail

A partition is a logical separation in the audit trail database used to support multi-tenancy. In this context the term does not refer to a database partition.

(Versions: 7.0.0)
This example uses undocumented API (ForkingServiceFactory and IJobManager) to get a list of the partitions in an audit trail.

public List<String> listPartitions() 
    ForkingServiceFactory factory = (ForkingServiceFactory) Parameters.instance().get(
    IJobManager jobManager = factory.getJobManager();
    if (null!= jobManager)
       final List<String> result = newArrayList();
         jobManager.performSynchronousJob(new Procedure<Void>()
          protected void invoke()
             for (Iterator<IAuditTrailPartition> i = AuditTrailPartitionBean.findAll(); i.hasNext(); )
                IAuditTrailPartition partition =;
         return result;
       trace.warn("Not able to list partitions, the component is not fully configured.");
         return emptyList();

Back to the top