arp.process.ProcessContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ARP Show documentation
Show all versions of ARP Show documentation
a java development framework with aggregation, repository and process
The newest version!
package arp.process;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import arp.enhance.ProcessInfo;
import arp.repository.Repository;
import arp.repository.RepositoryProcessEntities;
import arp.util.Unsafe;
public class ProcessContext {
private static ProcessInfo[] processInfos;
public static void setProcessInfos(List processInfoList) {
processInfos = new ProcessInfo[processInfoList.size()];
for (ProcessInfo processInfo : processInfoList) {
processInfos[processInfo.getId()] = processInfo;
}
}
public static ProcessInfo getProcessInfo(int processInfoId) {
return processInfos[processInfoId];
}
private boolean started;
private Map> processEntities = new HashMap<>();
private List singleEntityAcquiredLocks = new ArrayList<>();
private List