public static void setByteArray(String repStr, byte[] repStrBytes) { synchronized (repStrToByteArray) { repStrToByteArray.put(repStr, repStrBytes); } }
/** * Creates a repository ID for an IDL Java Type. * * @param ser * The IDL Value object to create a repository ID for * @param major * The major version number * @param minor * The minor version number * @exception org.jboss.com.sun.corba.se.impl.io.TypeMismatchException * if ser does not implement the org.omg.CORBA.portable.IDLEntity interface which indicates it is an * IDL Value type. **/ public static String createForIDLType(Class<?> ser, int major, int minor) throws org.jboss.com.sun.corba.se.impl.io.TypeMismatchException { synchronized (classIDLToRepStr) { String repid = (String) classIDLToRepStr.get(ser); if (repid != null) return repid; repid = kIDLPrefix + convertToISOLatin1(ser.getName()).replace('.', '/') + ":" + major + "." + minor; classIDLToRepStr.put(ser, repid); return repid; } }
/** * Returns a rather long string representation of this hashtable. * * @return a string representation of this hashtable. * @since JDK1.0 */ public String toString() { int max = size() - 1; StringBuffer buf = new StringBuffer(); Enumeration<Object> k = keys(); Enumeration<Object> e = elements(); buf.append("{"); for (int i = 0; i <= max; i++) { String s1 = k.nextElement().toString(); String s2 = e.nextElement().toString(); buf.append(s1 + "=" + s2); if (i < max) { buf.append(", "); } } buf.append("}"); return buf.toString(); } }
public static byte[] getByteArray(String repStr) { synchronized (repStrToByteArray) { return (byte[]) repStrToByteArray.get(repStr); } }
public static Tie getAndForgetTie(org.omg.CORBA.Object stub) { synchronized (stubToTieCache) { return (Tie) stubToTieCache.remove(stub); } }
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }
/** * Creates a repository ID for an IDL Java Type. * * @param ser * The IDL Value object to create a repository ID for * @param major * The major version number * @param minor * The minor version number * @exception org.jboss.com.sun.corba.se.impl.io.TypeMismatchException * if ser does not implement the org.omg.CORBA.portable.IDLEntity interface which indicates it is an * IDL Value type. **/ public static String createForIDLType(Class<?> ser, int major, int minor) throws org.jboss.com.sun.corba.se.impl.io.TypeMismatchException { synchronized (classIDLToRepStr) { String repid = (String) classIDLToRepStr.get(ser); if (repid != null) return repid; repid = kIDLPrefix + convertToISOLatin1(ser.getName()).replace('.', '/') + ":" + major + "." + minor; classIDLToRepStr.put(ser, repid); return repid; } }
/** * Returns a rather long string representation of this hashtable. * * @return a string representation of this hashtable. * @since JDK1.0 */ public String toString() { int max = size() - 1; StringBuffer buf = new StringBuffer(); Enumeration<Object> k = keys(); Enumeration<Object> e = elements(); buf.append("{"); for (int i = 0; i <= max; i++) { String s1 = k.nextElement().toString(); String s2 = e.nextElement().toString(); buf.append(s1 + "=" + s2); if (i < max) { buf.append(", "); } } buf.append("}"); return buf.toString(); } }
public static byte[] getByteArray(String repStr) { synchronized (repStrToByteArray) { return (byte[]) repStrToByteArray.get(repStr); } }
public static Tie getAndForgetTie(org.omg.CORBA.Object stub) { synchronized (stubToTieCache) { return (Tie) stubToTieCache.remove(stub); } }
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }
/** * Creates a repository ID for an IDL Java Type. * * @param ser * The IDL Value object to create a repository ID for * @param major * The major version number * @param minor * The minor version number * @exception org.jboss.com.sun.corba.se.impl.io.TypeMismatchException * if ser does not implement the org.omg.CORBA.portable.IDLEntity interface which indicates it is an * IDL Value type. **/ public static String createForIDLType(Class<?> ser, int major, int minor) throws org.jboss.com.sun.corba.se.impl.io.TypeMismatchException { synchronized (classIDLToRepStr) { String repid = (String) classIDLToRepStr.get(ser); if (repid != null) return repid; repid = kIDLPrefix + convertToISOLatin1(ser.getName()).replace('.', '/') + ":" + major + "." + minor; classIDLToRepStr.put(ser, repid); return repid; } }
public static void setByteArray(String repStr, byte[] repStrBytes) { synchronized (repStrToByteArray) { repStrToByteArray.put(repStr, repStrBytes); } }
public static byte[] getByteArray(String repStr) { synchronized (repStrToByteArray) { return (byte[]) repStrToByteArray.get(repStr); } }