public void printInfo () { IIOPProfile profile = (IIOPProfile) getEffectiveProfile(); System.out.println("\n Print some Information -------------"); System.out.println("Object ID "+ getIDString()); System.out.println("Type Name "+ getTypeId()); System.out.println("Host Address "+ profile.getAddress()); System.out.println("Object Key "+ new String(get_object_key())); System.out.println("\n\n"); }
public void printInfo () { IIOPProfile profile = (IIOPProfile) getEffectiveProfile(); System.out.println("\n Print some Information -------------"); System.out.println("Object ID "+ getIDString()); System.out.println("Type Name "+ getTypeId()); System.out.println("Host Address "+ profile.getAddress()); System.out.println("Object Key "+ new String(get_object_key())); System.out.println("\n\n"); }
public IOR newObjectKey(String objectId) { String the_object_key = new String(get_object_key()); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = new IOR(); List profiles = getProfiles(); new_ior.type_id = getTypeId(); new_ior.profiles = new TaggedProfile[profiles.size()]; for (int i = 0; i < profiles.size(); i++) { IIOPProfile pb = (IIOPProfile) profiles.get(i); IIOPProfile new_pb = (IIOPProfile) pb.copy(); new_pb.set_object_key(new_object_key.getBytes(StandardCharsets.UTF_8)); new_ior.profiles[i] = new TaggedProfile(); new_ior.profiles[i].tag = 0; // IIOP TaggedProfileHolder holder = new TaggedProfileHolder(new_ior.profiles[i]); new_pb.marshal(holder, null); new_ior.profiles[i].profile_data = holder.value.profile_data; } return new_ior; }
public IOR newObjectKey(String objectId) { String the_object_key = new String(get_object_key()); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = new IOR(); List profiles = getProfiles(); new_ior.type_id = getTypeId(); new_ior.profiles = new TaggedProfile[profiles.size()]; for (int i = 0; i < profiles.size(); i++) { IIOPProfile pb = (IIOPProfile) profiles.get(i); IIOPProfile new_pb = (IIOPProfile) pb.copy(); new_pb.set_object_key(new_object_key.getBytes()); new_ior.profiles[i] = new TaggedProfile(); new_ior.profiles[i].tag = 0; // IIOP TaggedProfileHolder holder = new TaggedProfileHolder(new_ior.profiles[i]); new_pb.marshal(holder, null); new_ior.profiles[i].profile_data = holder.value.profile_data; } return new_ior; }