Tabnine Logo
JISession.debug_delIpids
Code IndexAdd Tabnine to your IDE (free)

How to use
debug_delIpids
method
in
org.jinterop.dcom.core.JISession

Best Java code snippets using org.jinterop.dcom.core.JISession.debug_delIpids (Showing top 9 results out of 315)

origin: org.openscada.jinterop/org.openscada.jinterop.core

private JIStruct prepareForReleaseRef ( final String IPID, final int numInstancesfirsttime ) throws JIException
{
  final JIStruct remInterface = new JIStruct ();
  remInterface.addMember ( new rpc.core.UUID ( IPID ) );
  remInterface.addMember ( new Integer ( numInstancesfirsttime + 5 ) ); // numInstancesfirsttime of the original and 5 for the addRef done later on.
  remInterface.addMember ( new Integer ( 0 ) );//private refs = 0
  logger.warn ( "prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: {} session: {} , numInstancesfirsttime is {}", new Object[] { IPID, getSessionIdentifier (), numInstancesfirsttime } );
  debug_delIpids ( IPID, numInstancesfirsttime + 5 );
  return remInterface;
}
origin: org.jinterop/j-interop

private JIStruct prepareForReleaseRef(String IPID) throws JIException
{
  JIStruct remInterface = new JIStruct();
  remInterface.addMember(new rpc.core.UUID(IPID));
  remInterface.addMember(new Integer(5 + 5)); // 5 of the original and 5 for the addRef done later on.
  remInterface.addMember(new Integer(0));//private refs = 0
  if (JISystem.getLogger().isLoggable(Level.WARNING))
  {
    JISystem.getLogger().warning("prepareForReleaseRef: Releasing 10 references of IPID: " + IPID + " session: " + getSessionIdentifier());
    debug_delIpids(IPID, 10);
  }
  return remInterface;
}
origin: org.kohsuke.jinterop/j-interop

private JIStruct prepareForReleaseRef(String IPID, int numInstancesfirsttime) throws JIException
{
  JIStruct remInterface = new JIStruct();
  remInterface.addMember(new rpc.core.UUID(IPID));
  remInterface.addMember(new Integer(numInstancesfirsttime + 5)); // numInstancesfirsttime of the original and 5 for the addRef done later on.
  remInterface.addMember(new Integer(0));//private refs = 0
  if (JISystem.getLogger().isLoggable(Level.INFO))
  {
    JISystem.getLogger().warning("prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: " 
        + IPID + " session: " + getSessionIdentifier() + " , numInstancesfirsttime is " + 
        numInstancesfirsttime);
  }
  debug_delIpids(IPID, numInstancesfirsttime + 5);
  return remInterface;	
}
 
origin: org.openscada.jinterop/org.openscada.jinterop.core

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 );
}
origin: org.jinterop/j-interop

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);
}
origin: org.kohsuke.jinterop/j-interop

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);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

@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 );
}
origin: org.kohsuke.jinterop/j-interop

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);
}
origin: org.jinterop/j-interop

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);
}
org.jinterop.dcom.coreJISessiondebug_delIpids

Popular methods of JISession

  • createSession
    Creates a new session using credentials of the sessionparameter. The new session is not yet attached
  • setGlobalSocketTimeout
    Sets the timeout for all sockets opened to (not fro) the COM server for this session. Default value
  • destroySession
    Used to destroy the session, this release all references of the COM server and it's interfaces. It s
  • useSessionSecurity
    Sets the use of NTLM2 Session Security. Framework will use NTLM Packet Level Privacy and Sign\Seal
  • <init>
  • addToSession
  • debug_addIpids
  • equals
  • getDomain
    Gets the domain of the user associated with this session.
  • getGlobalSocketTimeout
    Returns the global timeout applied to all sockets opened from this session to COM Server.
  • getLocalHost
  • getLocalhostAddressAsIPString
  • getLocalHost,
  • getLocalhostAddressAsIPString,
  • getLocalhostAddressAsIPbytes,
  • getLocalhostCanonicalAddressAsString,
  • getPassword,
  • getSessionIdentifier,
  • getStub,
  • getTargetServer,
  • getUnreferencedHandler

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now