Java Code Examples for com.sun.corba.se.impl.orbutil.ORBUtility#bytesToInt()

The following examples show how to use com.sun.corba.se.impl.orbutil.ORBUtility#bytesToInt() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransientObjectManager.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 2
Source File: TransientObjectManager.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 3
Source File: TransientObjectManager.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 4
Source File: TransientObjectManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 5
Source File: TransientObjectManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 6
Source File: TransientObjectManager.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 7
Source File: TransientObjectManager.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 8
Source File: TransientObjectManager.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 9
Source File: TransientObjectManager.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 10
Source File: TransientObjectManager.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 11
Source File: TransientObjectManager.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servant;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 12
Source File: TransientObjectManager.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 13
Source File: TransientObjectManager.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized java.lang.Object lookupServantData(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    int counter = ORBUtility.bytesToInt(transientKey,4);

    if (orb.transientObjectManagerDebugFlag)
        dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ;

    if (elementArray[index].counter == counter &&
        elementArray[index].valid ) {
        if (orb.transientObjectManagerDebugFlag)
            dprint( "\tcounter is valid" ) ;
        return elementArray[index].servantData;
    }

    // servant not found
    if (orb.transientObjectManagerDebugFlag)
        dprint( "\tcounter is invalid" ) ;
    return null;
}
 
Example 14
Source File: TransientObjectManager.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 15
Source File: TransientObjectManager.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 16
Source File: TransientObjectManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 17
Source File: TransientObjectManager.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 18
Source File: TransientObjectManager.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 19
Source File: TransientObjectManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}
 
Example 20
Source File: TransientObjectManager.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public synchronized void deleteServant(byte transientKey[])
{
    int index = ORBUtility.bytesToInt(transientKey,0);
    if (orb.transientObjectManagerDebugFlag)
        dprint( "deleting servant at index=" + index ) ;

    elementArray[index].delete(freeList);
    freeList = elementArray[index];
}