Lines Matching defs:id
122 * activation descriptor for the activation identifier, id, determines
150 /** maps activation id to its respective group id */
153 /** maps group id to its GroupEntry groups */
401 public MarshalledObject<? extends Remote> activate(ActivationID id,
406 return getGroupEntry(id).activate(id, force);
421 public void inactiveObject(ActivationID id)
430 getGroupEntry(id).inactiveObject(id);
433 public void activeObject(ActivationID id,
443 getGroupEntry(id).activeObject(id, mobj);
446 public void inactiveGroup(ActivationGroupID id,
456 getGroupEntry(id).inactiveGroup(incarnation, false);
490 ActivationID id = new ActivationID(activatorStub);
491 getGroupEntry(groupID).registerObject(id, desc, true);
492 return id;
495 public void unregisterObject(ActivationID id)
500 getGroupEntry(id).unregisterObject(id, true);
510 ActivationGroupID id = new ActivationGroupID(systemStub);
511 GroupEntry entry = new GroupEntry(id, desc);
513 groupTable.put(id, entry);
514 addLogRecord(new LogRegisterGroup(id, desc));
515 return id;
518 public ActivationMonitor activeGroup(ActivationGroupID id,
526 getGroupEntry(id).activeGroup(group, incarnation);
530 public void unregisterGroup(ActivationGroupID id)
538 removeGroupEntry(id).unregisterGroup(true);
541 public ActivationDesc setActivationDesc(ActivationID id,
548 if (!getGroupID(id).equals(desc.getGroupID())) {
552 return getGroupEntry(id).setActivationDesc(id, desc, true);
555 public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
564 return getGroupEntry(id).setActivationGroupDesc(id, desc, true);
567 public ActivationDesc getActivationDesc(ActivationID id)
573 return getGroupEntry(id).getActivationDesc(id);
576 public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
583 return getGroupEntry(id).desc;
714 * Returns the groupID for a given id of an object in the group.
717 private ActivationGroupID getGroupID(ActivationID id)
720 ActivationGroupID groupID = idTable.get(id);
724 throw new UnknownObjectException("unknown object: " + id);
728 * Returns the group entry for the group id, optionally removing it.
731 private GroupEntry getGroupEntry(ActivationGroupID id, boolean rm)
734 if (id.getClass() == ActivationGroupID.class) {
737 entry = groupTable.remove(id);
739 entry = groupTable.get(id);
749 * Returns the group entry for the group id. Throws
752 private GroupEntry getGroupEntry(ActivationGroupID id)
755 return getGroupEntry(id, false);
759 * Removes and returns the group entry for the group id. Throws
762 private GroupEntry removeGroupEntry(ActivationGroupID id)
765 return getGroupEntry(id, true);
769 * Returns the group entry for the object's id. Throws
773 private GroupEntry getGroupEntry(ActivationID id)
776 ActivationGroupID gid = getGroupID(id);
842 ActivationID id = iter.next();
844 activate(id, true);
887 private ObjectEntry getObjectEntry(ActivationID id)
893 ObjectEntry objEntry = objects.get(id);
900 synchronized void registerObject(ActivationID id,
906 objects.put(id, new ObjectEntry(desc));
908 restartSet.add(id);
912 idTable.put(id, groupID);
915 addLogRecord(new LogRegisterObject(id, desc));
919 synchronized void unregisterObject(ActivationID id, boolean addRecord)
922 ObjectEntry objEntry = getObjectEntry(id);
924 objects.remove(id);
926 restartSet.remove(id);
930 idTable.remove(id);
932 addLogRecord(new LogUnregisterObject(id));
944 ActivationID id = entry.getKey();
945 idTable.remove(id);
960 synchronized ActivationDesc setActivationDesc(ActivationID id,
966 ObjectEntry objEntry = getObjectEntry(id);
970 restartSet.add(id);
972 restartSet.remove(id);
976 addLogRecord(new LogUpdateDesc(id, desc));
982 synchronized ActivationDesc getActivationDesc(ActivationID id)
985 return getObjectEntry(id).desc;
989 ActivationGroupID id,
999 addLogRecord(new LogUpdateGroupDesc(id, desc));
1021 synchronized void activeObject(ActivationID id,
1025 getObjectEntry(id).stub = mobj;
1028 synchronized void inactiveObject(ActivationID id)
1031 getObjectEntry(id).reset();
1111 MarshalledObject<? extends Remote> activate(ActivationID id,
1128 objEntry = getObjectEntry(id);
1141 return objEntry.activate(id, force, inst);
1189 * Returns the instantiator for the group specified by id and
1193 private ActivationInstantiator getInstantiator(ActivationGroupID id)
1230 addLogRecord(new LogGroupIncarnation(id, incarnation));
1238 out.writeObject(id);
1443 activate(ActivationID id,
1455 nstub = inst.newInstance(id, desc);
1549 private ActivationID id;
1552 LogRegisterObject(ActivationID id, ActivationDesc desc) {
1553 this.id = id;
1560 registerObject(id, desc, false);
1578 private ActivationID id;
1580 LogUnregisterObject(ActivationID id) {
1581 this.id = id;
1586 ((Activation) state).getGroupEntry(id).
1587 unregisterObject(id, false);
1605 private ActivationGroupID id;
1608 LogRegisterGroup(ActivationGroupID id, ActivationGroupDesc desc) {
1609 this.id = id;
1616 ((Activation) state).groupTable.put(id, ((Activation) state).new
1617 GroupEntry(id, desc));
1629 private ActivationID id;
1632 LogUpdateDesc(ActivationID id, ActivationDesc desc) {
1633 this.id = id;
1639 ((Activation) state).getGroupEntry(id).
1640 setActivationDesc(id, desc, false);
1658 private ActivationGroupID id;
1661 LogUpdateGroupDesc(ActivationGroupID id, ActivationGroupDesc desc) {
1662 this.id = id;
1668 ((Activation) state).getGroupEntry(id).
1669 setActivationGroupDesc(id, desc, false);
1687 private ActivationGroupID id;
1689 LogUnregisterGroup(ActivationGroupID id) {
1690 this.id = id;
1694 GroupEntry entry = ((Activation) state).groupTable.remove(id);
1714 private ActivationGroupID id;
1717 LogGroupIncarnation(ActivationGroupID id, long inc) {
1718 this.id = id;
1724 GroupEntry entry = ((Activation) state).getGroupEntry(id);