public void startEtherealize(Thread etherealizer) { this.etherealizer[0] = etherealizer; doIt(START_ETH); }
entry.startEtherealize(null); try entry.etherealizeComplete();
entry.incarnateFailure(); throw poa.invocationWrapper().poaNoServantManager(); entry.incarnateFailure(); entry.incarnateFailure(); throw poa.invocationWrapper().poaServantNotUnique(); entry.incarnateComplete(); activateServant(key, entry, (Servant) servant);
public void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) throws ObjectNotActive, WrongPolicy { if (activator == null) throw poa.invocationWrapper().poaNoServantManager(); Etherealizer eth = new Etherealizer(this, key, entry, servant, poa.getDebug()); entry.startEtherealize(eth); }
public void returnServant() { OAInvocationInfo info = orb.peekInvocationInfo(); byte[] id = info.id(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); AOMEntry entry = activeObjectMap.get(key); entry.exit(); }
/** * get Returbs the entry assigned to the key, or creates a new entry in state INVALID if none is present. */ public final AOMEntry get(Key key) { AOMEntry result = keyToEntry.get(key); if (result == null) { result = new AOMEntry(poa); putEntry(key, result); } return result; }
public final void activateObject(byte[] id, Servant servant) throws WrongPolicy, ServantAlreadyActive, ObjectAlreadyActive { if (isUnique && activeObjectMap.contains(servant)) throw new ServantAlreadyActive(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); // Note that this can't happen for system assigned IDs since the POA never hands out the same ID. However, we // make this redundant check here to share the code. if (activeObjectMap.containsKey(key)) throw new ObjectAlreadyActive(); AOMEntry entry = activeObjectMap.get(key); entry.activateObject(); activateServant(key, entry, servant); }
private AOMEntry enterEntry(ActiveObjectMap.Key key) { AOMEntry result = null; boolean failed; do { failed = false; result = activeObjectMap.get(key); try { result.enter(); } catch (Exception exc) { failed = true; } } while (failed); return result; }
entry.etherealizeComplete(); mediator.activeObjectMap.remove(key);
entry.startEtherealize(null); try entry.etherealizeComplete();
entry.incarnateFailure(); throw poa.invocationWrapper().poaNoServantManager(); entry.incarnateFailure(); entry.incarnateFailure(); throw poa.invocationWrapper().poaServantNotUnique(); entry.incarnateComplete(); activateServant(key, entry, (Servant) servant);
public void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) throws ObjectNotActive, WrongPolicy { if (activator == null) throw poa.invocationWrapper().poaNoServantManager(); Etherealizer eth = new Etherealizer(this, key, entry, servant, poa.getDebug()); entry.startEtherealize(eth); }
public void returnServant() { OAInvocationInfo info = orb.peekInvocationInfo(); byte[] id = info.id(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); AOMEntry entry = activeObjectMap.get(key); entry.exit(); }
/** * get Returbs the entry assigned to the key, or creates a new entry in state INVALID if none is present. */ public final AOMEntry get(Key key) { AOMEntry result = keyToEntry.get(key); if (result == null) { result = new AOMEntry(poa); putEntry(key, result); } return result; }
public final void activateObject(byte[] id, Servant servant) throws WrongPolicy, ServantAlreadyActive, ObjectAlreadyActive { if (isUnique && activeObjectMap.contains(servant)) throw new ServantAlreadyActive(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); // Note that this can't happen for system assigned IDs since the POA never hands out the same ID. However, we // make this redundant check here to share the code. if (activeObjectMap.containsKey(key)) throw new ObjectAlreadyActive(); AOMEntry entry = activeObjectMap.get(key); entry.activateObject(); activateServant(key, entry, servant); }
private AOMEntry enterEntry(ActiveObjectMap.Key key) { AOMEntry result = null; boolean failed; do { failed = false; result = activeObjectMap.get(key); try { result.enter(); } catch (Exception exc) { failed = true; } } while (failed); return result; }
entry.etherealizeComplete(); mediator.activeObjectMap.remove(key);
public void exit() { doIt(EXIT); } }
public void etherealizeComplete() { doIt(ETH_DONE); }
public void startEtherealize(Thread etherealizer) { this.etherealizer[0] = etherealizer; doIt(START_ETH); }