void addRef_ReleaseRef(JICallBuilder obj) throws JIException { synchronized (mutex) { if (remunknownIPID == null) { return; } //now also set the Object ID for IRemUnknown call this will be the IPID of the returned JIRemActivation or IOxidResolver obj.setParentIpid(remunknownIPID); obj.attachSession(session); try { call(obj,JIRemUnknown.IID_IUnknown); } catch (JIRuntimeException e1) { throw new JIException(e1); } } }
void addRef_ReleaseRef(JICallBuilder obj) throws JIException { synchronized (mutex) { if (remunknownIPID == null) { return; } //now also set the Object ID for IRemUnknown call this will be the IPID of the returned JIRemActivation or IOxidResolver obj.setParentIpid(remunknownIPID); obj.attachSession(session); try { call(obj,JIRemUnknown.IID_IUnknown); } catch (JIRuntimeException e1) { throw new JIException(e1); } } }
void addRef_ReleaseRef ( final JICallBuilder obj ) throws JIException { synchronized ( this.mutex ) { if ( this.remunknownIPID == null ) { return; } //now also set the Object ID for IRemUnknown call this will be the IPID of the returned JIRemActivation or IOxidResolver obj.setParentIpid ( this.remunknownIPID ); obj.attachSession ( this.session ); try { call ( obj, JIRemUnknown.IID_IUnknown ); } catch ( final JIRuntimeException e1 ) { throw new JIException ( e1 ); } } }
void addRef_ReleaseRef(JICallBuilder obj) throws JIException { synchronized (mutex) { if (remunknownIPID == null) { return; } //now also set the Object ID for IRemUnknown call this will be the IPID of the returned JIRemActivation or IOxidResolver obj.setParentIpid(remunknownIPID); obj.attachSession(session); try { call(obj,JIRemUnknown.IID_IUnknown, session.getGlobalSocketTimeout()); } catch (JIRuntimeException e1) { throw new JIException(e1); } } }
void addRef_ReleaseRef ( final JICallBuilder obj ) throws JIException { synchronized ( this.mutex ) { if ( this.remunknownIPID == null ) { return; } //now also set the Object ID for IRemUnknown call this will be the IPID of the returned JIRemActivation or IOxidResolver obj.setParentIpid ( this.remunknownIPID ); obj.attachSession ( this.session ); try { call ( obj, JIRemUnknown.IID_IUnknown, this.session.getGlobalSocketTimeout () ); } catch ( final JIRuntimeException e1 ) { throw new JIException ( e1 ); } } }
void releaseRef ( final String IPID, final int numinstances ) throws JIException { logger.info ( "releaseRef:Reclaiming from Session: {} , the IPID: {}, numinstances is {}", numinstances, new Object[] { getSessionIdentifier (), IPID, numinstances } ); final JICallBuilder obj = new JICallBuilder ( true ); obj.setParentIpid ( IPID ); obj.setOpnum ( 2 );//release //length obj.addInParamAsShort ( (short)1, JIFlags.FLAG_NULL ); //ipid to addfref on final JIArray array = new JIArray ( new rpc.core.UUID[] { new rpc.core.UUID ( IPID ) }, true ); obj.addInParamAsArray ( array, JIFlags.FLAG_NULL ); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt ( numinstances, JIFlags.FLAG_NULL ); obj.addInParamAsInt ( 0, JIFlags.FLAG_NULL );//private refs = 0 if ( logger.isInfoEnabled () ) { debug_delIpids ( IPID, numinstances ); logger.info ( "releaseRef: Releasing numinstances {} references of IPID: {} session: {}", new Object[] { numinstances, IPID, getSessionIdentifier () } ); } this.stub2.addRef_ReleaseRef ( obj ); }
void releaseRef(String IPID) throws JIException { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("releaseRef:Reclaiming from Session: " + getSessionIdentifier() + " , the IPID: " + IPID); } JICallBuilder obj = new JICallBuilder(true); obj.setParentIpid(IPID); obj.setOpnum(2);//release //length obj.addInParamAsShort((short)1,JIFlags.FLAG_NULL); //ipid to addfref on JIArray array = new JIArray(new rpc.core.UUID[]{new rpc.core.UUID(IPID)},true); obj.addInParamAsArray(array,JIFlags.FLAG_NULL); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt(5,JIFlags.FLAG_NULL); obj.addInParamAsInt(0,JIFlags.FLAG_NULL);//private refs = 0 if (JISystem.getLogger().isLoggable(Level.WARNING)) { JISystem.getLogger().warning("releaseRef: Releasing 5 references of IPID: " + IPID + " session: " + getSessionIdentifier()); debug_delIpids(IPID, 5); } stub.addRef_ReleaseRef(obj); }
void releaseRef(String IPID,int numinstances) throws JIException { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("releaseRef:Reclaiming from Session: " + getSessionIdentifier() + " , the IPID: " + IPID + ", numinstances is " + numinstances); } JICallBuilder obj = new JICallBuilder(true); obj.setParentIpid(IPID); obj.setOpnum(2);//release //length obj.addInParamAsShort((short)1,JIFlags.FLAG_NULL); //ipid to addfref on JIArray array = new JIArray(new rpc.core.UUID[]{new rpc.core.UUID(IPID)},true); obj.addInParamAsArray(array,JIFlags.FLAG_NULL); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt(numinstances,JIFlags.FLAG_NULL); obj.addInParamAsInt(0,JIFlags.FLAG_NULL);//private refs = 0 if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().warning("releaseRef: Releasing numinstances " + numinstances + " references of IPID: " + IPID + " session: " + getSessionIdentifier()); debug_delIpids(IPID, numinstances); } stub2.addRef_ReleaseRef(obj); }
public Object[] call(JICallBuilder obj, int socketTimeout) throws JIException { checkLocal(); obj.attachSession(session); obj.setParentIpid(ptr.getIPID()); //Call is always made on your stub. if (socketTimeout != 0) //using instance level timeout { return session.getStub().call(obj,ptr.getIID(),socketTimeout); } else { return session.getStub().call(obj,ptr.getIID()); } }
public Object[] call(JICallBuilder obj, int socketTimeout) throws JIException { checkLocal(); obj.attachSession(session); obj.setParentIpid(ptr.getIPID()); //Call is always made on your stub. if (socketTimeout != 0) //using instance level timeout { return session.getStub().call(obj,ptr.getIID(),socketTimeout); } else { return session.getStub().call(obj,ptr.getIID()); } }
@Override public Object[] call ( final JICallBuilder obj, final int socketTimeout ) throws JIException { checkLocal (); obj.attachSession ( this.session ); obj.setParentIpid ( this.ptr.getIPID () ); //Call is always made on your stub. if ( socketTimeout != 0 ) //using instance level timeout { return this.session.getStub ().call ( obj, this.ptr.getIID (), socketTimeout ); } else { return this.session.getStub ().call ( obj, this.ptr.getIID () ); } }
@Override public void release () throws JIException { checkLocal (); final JICallBuilder obj = new JICallBuilder ( true ); obj.setParentIpid ( this.ptr.getIPID () ); obj.setOpnum ( 2 );//release //length obj.addInParamAsShort ( (short)1, JIFlags.FLAG_NULL ); //ipid to addfref on final JIArray array = new JIArray ( new rpc.core.UUID[] { new rpc.core.UUID ( this.ptr.getIPID () ) }, true ); obj.addInParamAsArray ( array, JIFlags.FLAG_NULL ); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt ( 5, JIFlags.FLAG_NULL ); obj.addInParamAsInt ( 0, JIFlags.FLAG_NULL );//private refs = 0 if ( logger.isInfoEnabled () ) { logger.info ( "RELEASE called directly ! removing 5 references for " + this.ptr.getIPID () + " session: " + this.session.getSessionIdentifier () ); JISession.debug_delIpids ( this.ptr.getIPID (), 5 ); } this.session.getStub2 ().addRef_ReleaseRef ( obj ); }
public void release() throws JIException { checkLocal(); JICallBuilder obj = new JICallBuilder(true); obj.setParentIpid(ptr.getIPID()); obj.setOpnum(2);//release //length obj.addInParamAsShort((short)1,JIFlags.FLAG_NULL); //ipid to addfref on JIArray array = new JIArray(new rpc.core.UUID[]{new rpc.core.UUID(ptr.getIPID())},true); obj.addInParamAsArray(array,JIFlags.FLAG_NULL); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt(5,JIFlags.FLAG_NULL); obj.addInParamAsInt(0,JIFlags.FLAG_NULL);//private refs = 0 if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().warning("RELEASE called directly ! removing 5 references for " + ptr.getIPID()+ " session: " + session.getSessionIdentifier()); JISession.debug_delIpids(ptr.getIPID(), 5); } session.getStub2().addRef_ReleaseRef(obj); }
public void release() throws JIException { checkLocal(); JICallBuilder obj = new JICallBuilder(true); obj.setParentIpid(ptr.getIPID()); obj.setOpnum(2);//release //length obj.addInParamAsShort((short)1,JIFlags.FLAG_NULL); //ipid to addfref on JIArray array = new JIArray(new rpc.core.UUID[]{new rpc.core.UUID(ptr.getIPID())},true); obj.addInParamAsArray(array,JIFlags.FLAG_NULL); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt(5,JIFlags.FLAG_NULL); obj.addInParamAsInt(0,JIFlags.FLAG_NULL);//private refs = 0 if (JISystem.getLogger().isLoggable(Level.WARNING)) { JISystem.getLogger().warning("RELEASE called directly ! removing 5 references for " + ptr.getIPID()+ " session: " + session.getSessionIdentifier()); JISession.debug_delIpids(ptr.getIPID(), 5); } session.getStub().addRef_ReleaseRef(obj); }
@Override public void addRef () throws JIException { checkLocal (); final JICallBuilder obj = new JICallBuilder ( true ); obj.setParentIpid ( this.ptr.getIPID () ); obj.setOpnum ( 1 );//addRef //length obj.addInParamAsShort ( (short)1, JIFlags.FLAG_NULL ); //ipid to addfref on final JIArray array = new JIArray ( new rpc.core.UUID[] { new rpc.core.UUID ( this.ptr.getIPID () ) }, true ); obj.addInParamAsArray ( array, JIFlags.FLAG_NULL ); //TODO requesting 5 for now, will later build caching mechnaism to exhaust 5 refs first before asking for more // same with release. obj.addInParamAsInt ( 5, JIFlags.FLAG_NULL ); obj.addInParamAsInt ( 0, JIFlags.FLAG_NULL );//private refs = 0 obj.addOutParamAsType ( Short.class, JIFlags.FLAG_NULL );//size obj.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL );//Hresult for size if ( logger.isInfoEnabled () ) { logger.info ( "addRef: Adding 5 references for " + this.ptr.getIPID () + " session: " + this.session.getSessionIdentifier () ); } JISession.debug_addIpids ( this.ptr.getIPID (), 5 ); this.session.getStub2 ().addRef_ReleaseRef ( obj ); if ( obj.getResultAsIntAt ( 1 ) != 0 ) { throw new JIException ( obj.getResultAsIntAt ( 1 ), (Throwable)null ); } }
obj.setParentIpid(ptr.getIPID()); obj.setOpnum(1);//addRef
obj.setParentIpid(ptr.getIPID()); obj.setOpnum(1);//addRef