@Override public long getAgeInSeconds() { return owner.getAgeInSeconds(); } }
@Override public String getCreationTime() { return owner.getCreationTime(); } @Override public long getAgeInSeconds()
public int getFailedCount() { return getListSize("Failed"); } public int getHeuristicCount()
public ObjectInstance register() { if (activated) remove(); if (action_ == null) action_ = new BasicActionWrapper(uid); try { action_.getAction().activate(); } catch (Exception e) { addError(e.getMessage()); } action_.populateLists(lists, this); for (LogRecordListBean listBean : lists.values()) listBean.register(); activated = true; return super.register(); }
public String[] getPendingList() { return toStringArray(lists.get("Pending")); }
public LogRecordListBean(BasicActionBean parent, RecordList records, String name) { super(parent, parent.getType()); this.records = records; this.name = name; }
public ObjectInstance register() { if (action_ == null) action_ = new AtomicActionWrapper(uid); return super.register(); }
public LogRecordBean(BasicBean parent, BasicActionBean owner, AbstractRecord record) { super(parent, record.type(), owner.getStore(), record.order()); this.record = record; this.owner = owner; }
public void remove() { if (action_ == null) return; action_.getAction().deactivate(); activated = false; try { action_.remove(); } catch (ObjectStoreException e) { throw new RuntimeException(e); } action_ = null; // record successfuly remove the mbean unregister(); }
public String[] getReadOnlyList() { return toStringArray(lists.get("Readonly")); }
public String[] getFailedList() { return toStringArray(lists.get("Failed")); }
public int getPreparedCount() { return getListSize("Prepared"); } public int getReadOnlyCount()
public String[] getHeuristicList() { return toStringArray(lists.get("Heuristic")); }
public int getHeuristicCount() { return getListSize("Heuristic"); } public int getPendingCount()
public String[] getPreparedList() { return toStringArray(lists.get("Prepared")); }
public int getPendingCount() { return getListSize("Pending"); } public int getPreparedCount()
public int getReadOnlyCount() { return getListSize("ReadOnly"); }