public void doIt(FSM fsm, Input in) { AOMEntry entry = (AOMEntry) fsm; if (entry.counter[0] > 0) entry.counter[0]--; else throw entry.poa.lifecycleWrapper().aomEntryDecZero(); } };
public void doIt(FSM fsm, Input in) { AOMEntry entry = (AOMEntry) fsm; if (entry.counter[0] > 0) entry.counter[0]--; else throw entry.poa.lifecycleWrapper().aomEntryDecZero(); } };
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
/** * <code>reference_to_id</code> <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_id(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return internalReferenceToId(reference); } finally { unlock(); } }
/** * <code>reference_to_id</code> <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_id(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return internalReferenceToId(reference); } finally { unlock(); } }
/** * <code>id_to_servant</code> <b>3.3.8.23</b> */ public Servant id_to_servant(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_servant(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>id_to_servant</code> <b>3.3.8.23</b> */ public Servant id_to_servant(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_servant(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return mediator.idToServant(id); } finally { unlock(); } }
throw (ThreadDeath) thr; poa.lifecycleWrapper().unexpectedException(thr, poa.toString());
throw (ThreadDeath) thr; poa.lifecycleWrapper().unexpectedException(thr, poa.toString());
/** * <code>reference_to_servant</code> <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } // reference_to_id should throw WrongAdapter if the objref was not created by this POA byte[] id = internalReferenceToId(reference); return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>reference_to_servant</code> <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } // reference_to_id should throw WrongAdapter if the objref was not created by this POA byte[] id = internalReferenceToId(reference); return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>id_to_reference</code> <b>3.3.8.24</b> */ public org.omg.CORBA.Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_reference(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } Servant s = mediator.idToServant(id); String repId = s._all_interfaces(this, id)[0]; return makeObject(repId, id); } finally { unlock(); } }
/** * <code>id_to_reference</code> <b>3.3.8.24</b> */ public org.omg.CORBA.Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_reference(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } Servant s = mediator.idToServant(id); String repId = s._all_interfaces(this, id)[0]; return makeObject(repId, id); } finally { unlock(); } }
state = STATE_INIT_DONE; else throw lifecycleWrapper().illegalPoaStateTrans();
state = STATE_INIT_DONE; else throw lifecycleWrapper().illegalPoaStateTrans();
lifecycleWrapper().unexpectedException(thr, this.toString());
lifecycleWrapper().unexpectedException(thr, this.toString());