/** Called from Oxid Resolver master, the resolver address are put in here itself * * @param iid * @param ipid * @param oxid * @param oid */ JIInterfacePointer(String iid,int port,JIStdObjRef objref) { member = new JIPointer(new JIInterfacePointerBody(iid,port,objref),false); }
/** Called from Oxid Resolver master, the resolver address are put in here itself * * @param iid * @param ipid * @param oxid * @param oid */ JIInterfacePointer(String iid,int port,JIStdObjRef objref) { member = new JIPointer(new JIInterfacePointerBody(iid,port,objref),false); }
JIInterfacePointer ( final String iid, final JIInterfacePointer interfacePointer ) { this.member = new JIPointer ( new JIInterfacePointerBody ( iid, interfacePointer ), false ); }
/** * Called from Oxid Resolver master, the resolver address are put in here * itself * * @param iid * @param ipid * @param oxid * @param oid */ JIInterfacePointer ( final String iid, final int port, final JIStdObjRef objref ) { this.member = new JIPointer ( new JIInterfacePointerBody ( iid, port, objref ), false ); }
JIInterfacePointer(String iid, JIInterfacePointer interfacePointer) { member = new JIPointer(new JIInterfacePointerBody(iid,interfacePointer),false); }
JIInterfacePointer(String iid, JIInterfacePointer interfacePointer) { member = new JIPointer(new JIInterfacePointerBody(iid,interfacePointer),false); }
static JIVariant decode(NetworkDataRepresentation ndr,List defferedPointers, int FLAG, Map additionalData) { JIVariant variant = new JIVariant(); JIPointer ref = new JIPointer(VariantBody.class); ref.setDeffered(true);//this is since this could be part of an array or a struct...for normal calls //as soon as this call finishes a call will be given from JICallobject for it's variantbody. variant.member = (JIPointer)JIMarshalUnMarshalHelper.deSerialize(ndr,ref,defferedPointers,FLAG,additionalData); return variant; }
static JIVariant decode(NetworkDataRepresentation ndr,List defferedPointers, int FLAG, Map additionalData) { JIVariant variant = new JIVariant(); JIPointer ref = new JIPointer(VariantBody.class); ref.setDeffered(true);//this is since this could be part of an array or a struct...for normal calls //as soon as this call finishes a call will be given from JICallobject for it's variantbody. variant.member = (JIPointer)JIMarshalUnMarshalHelper.deSerialize(ndr,ref,defferedPointers,FLAG,additionalData); return variant; }
static JIVariant decode ( final NetworkDataRepresentation ndr, final List defferedPointers, final int FLAG, final Map additionalData ) { final JIVariant variant = new JIVariant (); final JIPointer ref = new JIPointer ( VariantBody.class ); ref.setDeffered ( true );//this is since this could be part of an array or a struct...for normal calls //as soon as this call finishes a call will be given from JICallobject for it's variantbody. variant.member = (JIPointer)JIMarshalUnMarshalHelper.deSerialize ( ndr, ref, defferedPointers, FLAG, additionalData ); return variant; }
public void getConformantIntArray() throws JIException, InterruptedException, UnknownHostException { JICallBuilder callObject = new JICallBuilder( true); callObject.setOpnum(8); Object results[]; callObject.addOutParamAsType(Integer.class, JIFlags.FLAG_NULL); callObject.addOutParamAsObject(new JIPointer(new JIArray(Integer.class, null, 1, true)), JIFlags.FLAG_NULL); results = comObject.call(callObject); JIArray arrayOfResults = (JIArray)((JIPointer)results[1]).getReferent(); Integer[] arrayOfIntegers = (Integer[]) arrayOfResults.getArrayInstance(); int length = ((Integer)results[0]).intValue(); for (int i = 0; i < length; i++) { System.out.println(arrayOfIntegers[i].intValue()); } }
public void getConformantStruct(String[] args) throws JIException, InterruptedException, UnknownHostException { JICallBuilder callObject = new JICallBuilder( true); callObject.setOpnum(14); //obtained from the IDL or TypeLib. // Object results[]; JIStruct struct = new JIStruct(); struct.addMember(Integer.class); struct.addMember(Double.class); struct.addMember(JIUnsignedShort.class); JIArray longArray = new JIArray(Integer.class, null, 1, true); struct.addMember(new JIPointer(longArray)); callObject.addOutParamAsObject(new JIPointer(struct), JIFlags.FLAG_NULL); results = comObject.call(callObject); System.out.println(results[0]); }
public void getConformantStruct ( final String[] args ) throws JIException, InterruptedException, UnknownHostException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 14 ); //obtained from the IDL or TypeLib. // Object results[]; final JIStruct struct = new JIStruct (); struct.addMember ( Integer.class ); struct.addMember ( Double.class ); struct.addMember ( JIUnsignedShort.class ); final JIArray longArray = new JIArray ( Integer.class, null, 1, true ); struct.addMember ( new JIPointer ( longArray ) ); callObject.addOutParamAsObject ( new JIPointer ( struct ), JIFlags.FLAG_NULL ); results = this.comObject.call ( callObject ); System.out.println ( results[0] ); }
public void getSimpleStruct ( final String[] args ) throws JIException, InterruptedException, UnknownHostException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 12 ); //obtained from the IDL or TypeLib. // Object results[]; final JIStruct struct = new JIStruct (); struct.addMember ( Integer.class ); struct.addMember ( Double.class ); struct.addMember ( Float.class ); callObject.addOutParamAsObject ( new JIPointer ( struct ), JIFlags.FLAG_NULL ); results = this.comObject.call ( callObject ); System.out.println ( results[0] ); }
public void getSimpleStruct(String[] args) throws JIException, InterruptedException, UnknownHostException { JICallBuilder callObject = new JICallBuilder( true); callObject.setOpnum(12); //obtained from the IDL or TypeLib. // Object results[]; JIStruct struct = new JIStruct(); struct.addMember(Integer.class); struct.addMember(Double.class); struct.addMember(Float.class); callObject.addOutParamAsObject(new JIPointer(struct), JIFlags.FLAG_NULL); results = comObject.call(callObject); System.out.println(results[0]); }
public void getSimpleStruct(String[] args) throws JIException, InterruptedException, UnknownHostException { JICallBuilder callObject = new JICallBuilder( true); callObject.setOpnum(12); //obtained from the IDL or TypeLib. // Object results[]; JIStruct struct = new JIStruct(); struct.addMember(Integer.class); struct.addMember(Double.class); struct.addMember(Float.class); callObject.addOutParamAsObject(new JIPointer(struct), JIFlags.FLAG_NULL); results = comObject.call(callObject); System.out.println(results[0]); }
public Collection<Integer> queryAvailableLocaleIDs () throws JIException { JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 2 ); callObject.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIPointer ( new JIArray ( Integer.class, null, 1, true ) ), JIFlags.FLAG_NULL ); Object[] result = getCOMObject ().call ( callObject ); JIArray resultArray = (JIArray) ( (JIPointer)result[1] ).getReferent (); Integer[] intArray = (Integer[])resultArray.getArrayInstance (); return Arrays.asList ( intArray ); }
public void getSimpleStructArray(String[] args) throws JIException, InterruptedException, UnknownHostException { JICallBuilder callObject = new JICallBuilder( true); callObject.setOpnum(13); //obtained from the IDL or TypeLib. // Object results[]; callObject.addOutParamAsType(JIUnsignedShort.class, JIFlags.FLAG_NULL); JIStruct struct = new JIStruct(); struct.addMember(Integer.class); struct.addMember(Double.class); struct.addMember(Float.class); JIArray DataArray = new JIArray(struct, null, 1, true); callObject.addOutParamAsObject(new JIPointer(DataArray), JIFlags.FLAG_NULL); results = comObject.call(callObject); System.out.println(((JIUnsignedShort)results[0]).getValue()); }
/** * Retrieve the current server status * * @return the current server status * @throws JIException */ public OPCSERVERSTATUS getStatus () throws JIException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 3 ); callObject.addOutParamAsObject ( new JIPointer ( OPCSERVERSTATUS.getStruct () ), JIFlags.FLAG_NULL ); final Object[] result = getCOMObject ().call ( callObject ); return OPCSERVERSTATUS.fromStruct ( (JIStruct) ( (JIPointer)result[0] ).getReferent () ); }
public static JIStruct getStruct () throws JIException { JIStruct struct = new JIStruct (); struct.addMember ( Integer.class ); // Server handle struct.addMember ( Short.class ); // data type struct.addMember ( Short.class ); // reserved struct.addMember ( Integer.class ); // access rights struct.addMember ( Integer.class ); // blob size // grab the normally unused byte array struct.addMember ( new JIPointer ( new JIArray ( Byte.class, null, 1, true, false ) ) ); return struct; }
public String getErrorString ( final int errorCode, final int localeID ) throws JIException { JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 3 ); callObject.addInParamAsInt ( errorCode, JIFlags.FLAG_NULL ); callObject.addInParamAsInt ( localeID, JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIPointer ( new JIString ( JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ) ), JIFlags.FLAG_NULL ); Object[] result = getCOMObject ().call ( callObject ); return ( (JIString) ( (JIPointer)result[0] ).getReferent () ).getString (); }