summaryrefslogtreecommitdiff
path: root/matlab/lib
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-02-08 17:23:26 +0100
committerJose <jose@zeroc.com>2018-02-08 17:23:26 +0100
commit41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c (patch)
tree92eda1d6156d91d4bfce18f8fc06820af1e401ff /matlab/lib
parentRemove old files (diff)
parentFixed matlab check for testing (diff)
downloadice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.tar.bz2
ice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.tar.xz
ice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.zip
Merge branch '3.7' of github.com:zeroc-ice/ice into 3.7
Diffstat (limited to 'matlab/lib')
-rw-r--r--matlab/lib/+Ice/ObjectPrx.m59
-rw-r--r--matlab/lib/+IceInternal/WrapperObject.m3
2 files changed, 59 insertions, 3 deletions
diff --git a/matlab/lib/+Ice/ObjectPrx.m b/matlab/lib/+Ice/ObjectPrx.m
index bda1e88b6da..387dc692a85 100644
--- a/matlab/lib/+Ice/ObjectPrx.m
+++ b/matlab/lib/+Ice/ObjectPrx.m
@@ -95,8 +95,12 @@ classdef ObjectPrx < IceInternal.WrapperObject
% proxy, but uses batch datagram invocations.
% ice_compress - Returns a proxy that is identical to this proxy,
% except for compression.
+ % ice_getCompress - Obtains the compression override setting of this proxy.
% ice_timeout - Returns a proxy that is identical to this proxy,
% except for its connection timeout setting.
+ % ice_getTimeout - Obtains the timeout override of this proxy.
+ % ice_fixed - Obtains a proxy that is identical to this proxy, except it's
+ % a fixed proxy bound to the given connection.
% ice_getConnection - Returns the Connection for this proxy.
% ice_getConnectionAsync - Returns the Connection for this proxy.
% ice_getCachedConnection - Returns the cached Connection for this
@@ -810,7 +814,7 @@ classdef ObjectPrx < IceInternal.WrapperObject
% b (logical) - True enables compression for the new proxy;
% false disables compression.
%
- % Returns - A proxy with the specified compression setting.
+ % Returns - A proxy with the specified compression override setting.
if b
val = 1;
@@ -820,12 +824,29 @@ classdef ObjectPrx < IceInternal.WrapperObject
r = obj.factory_('ice_compress', true, val);
end
+ function r = ice_getCompress(obj)
+ % ice_getCompress - Obtains the compression override setting of this proxy.
+ %
+ % Returns (optional bool) - The compression override setting. If Ice.Unset
+ % is returned, no override is set. Otherwise, true if compression is
+ % enabled, false otherwise.
+
+ obj.instantiate_();
+ opt = obj.iceCallWithResult('ice_getCompress');
+ if opt.hasValue
+ r = opt.value;
+ else
+ r = Ice.Unset;
+ end
+ end
+
function r = ice_timeout(obj, t)
% ice_timeout - Returns a proxy that is identical to this proxy,
- % except for its connection timeout setting.
+ % except for its connection timeout setting which overrides the timeout
+ % setting from the proxy endpoints.
%
% Parameters:
- % t (int32) - The connection timeout for the proxy in
+ % t (int32) - The connection override timeout for the proxy in
% milliseconds.
%
% Returns - A proxy with the specified timeout.
@@ -833,6 +854,38 @@ classdef ObjectPrx < IceInternal.WrapperObject
r = obj.factory_('ice_timeout', true, t);
end
+ function r = ice_getTimeout(obj)
+ % ice_getTimeout - Obtains the timeout override of this proxy.
+ %
+ % Returns (optional int32) - The timeout override. If Ice.Unset
+ % is returned, no override is set. Otherwise, returns the
+ % timeout override value.
+
+ obj.instantiate_();
+ opt = obj.iceCallWithResult('ice_getTimeout');
+ if opt.hasValue
+ r = opt.value;
+ else
+ r = Ice.Unset;
+ end
+ end
+
+ function r = ice_fixed(obj, connection)
+ % ice_fixed - Obtains a proxy that is identical to this proxy, except it's
+ % a fixed proxy bound to the given connection.
+ %
+ % Parameters:
+ % connection (Ice.Connection) - The fixed proxy connection.
+ %
+ % Returns (Ice.ObjectPrx) - A fixed proxy bound to the given connection.
+
+ if isempty(connection)
+ throw(MException('Ice:ArgumentException', 'invalid null connection passed to ice_fixed'));
+ end
+
+ r = obj.factory_('ice_fixed', true, connection.iceGetImpl());
+ end
+
function r = ice_getConnection(obj)
% ice_getConnection - Returns the Connection for this proxy. If the
% proxy does not yet have an established connection, it first
diff --git a/matlab/lib/+IceInternal/WrapperObject.m b/matlab/lib/+IceInternal/WrapperObject.m
index aaecc47d153..3d12d9a8a25 100644
--- a/matlab/lib/+IceInternal/WrapperObject.m
+++ b/matlab/lib/+IceInternal/WrapperObject.m
@@ -47,6 +47,9 @@ classdef (Abstract) WrapperObject < handle
r = result.result;
end
end
+ function r = iceGetImpl(obj)
+ r = obj.impl_;
+ end
end
properties(Hidden,SetAccess=protected)
impl_