/** * Returns the timing policies for this request as an array * of PolicyValues that can be propagated in a ServiceContext. */ private PolicyValue[] getTimingPolicyValues() { List list = new ArrayList(); if (requestStartTime != null) { list.add (new PolicyValue (REQUEST_START_TIME_POLICY_TYPE.value, Time.toCDR (requestStartTime))); } if (requestEndTime != null) { list.add (new PolicyValue (REQUEST_END_TIME_POLICY_TYPE.value, Time.toCDR (requestEndTime))); } if (replyEndTime != null) { list.add (new PolicyValue (REPLY_END_TIME_POLICY_TYPE.value, Time.toCDR (replyEndTime))); } return (PolicyValue[])list.toArray (new PolicyValue[list.size()]); }
public static org.omg.Messaging.PolicyValue read (final org.omg.CORBA.portable.InputStream in) { org.omg.Messaging.PolicyValue result = new org.omg.Messaging.PolicyValue(); result.ptype=in.read_ulong(); result.pvalue = org.omg.CORBA.OctetSeqHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.Messaging.PolicyValue s)
public static org.omg.Messaging.PolicyValue read (final org.omg.CORBA.portable.InputStream in) { org.omg.Messaging.PolicyValue result = new org.omg.Messaging.PolicyValue(); result.ptype=in.read_ulong(); result.pvalue = org.omg.CORBA.OctetSeqHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.Messaging.PolicyValue s)
public static PolicyValue read(org.omg.CORBA.portable.InputStream in) { PolicyValue _ob_v = new PolicyValue(); _ob_v.ptype = org.omg.CORBA.PolicyTypeHelper.read(in); int len0 = in.read_ulong(); _ob_v.pvalue = new byte[len0]; in.read_octet_array(_ob_v.pvalue, 0, len0); return _ob_v; }
org.omg.Messaging.PolicyValue val = new org.omg.Messaging.PolicyValue(); org.omg.Messaging.PolicyValue val = new org.omg.Messaging.PolicyValue();
public static org.omg.Messaging.PolicyValue createMessagingPolicyValue( org.omg.CORBA.Policy policy) { org.omg.Messaging.PolicyValue value = new org.omg.Messaging.PolicyValue();