Exemplo n.º 1
0
 public AttributeResolverI()
 {
     try
     {
         Type cl = typeof(ConnectionHelper);
         Add("parent", cl.GetMethod("GetParent"));
         Add("id", cl.GetMethod("GetId"));
         Add("state", cl.GetMethod("GetState"));
         AttrsUtil.AddConnectionAttributes(this, cl);
     }
     catch (System.Exception)
     {
         Debug.Assert(false);
     }
 }
Exemplo n.º 2
0
 public AttributeResolverI()
 {
     try
     {
         Type cl = typeof(RemoteInvocationHelper);
         add("parent", cl.GetMethod("getParent"));
         add("id", cl.GetMethod("getId"));
         add("requestId", cl.GetMethod("getRequestId"));
         AttrsUtil.addConnectionAttributes <RemoteMetrics>(this, cl);
     }
     catch (Exception)
     {
         Debug.Assert(false);
     }
 }
Exemplo n.º 3
0
        addConnectionAttributes <T>(MetricsHelper <T> .AttributeResolver r, Type cl) where T : IceMX.Metrics
        {
            Type cli = typeof(Ice.ConnectionInfo);

            r.add("incoming", cl.GetMethod("getConnectionInfo"), cli.GetField("incoming"));
            r.add("adapterName", cl.GetMethod("getConnectionInfo"), cli.GetField("adapterName"));
            r.add("connectionId", cl.GetMethod("getConnectionInfo"), cli.GetField("connectionId"));

            cli = typeof(Ice.IPConnectionInfo);
            r.add("localHost", cl.GetMethod("getConnectionInfo"), cli.GetField("localAddress"));
            r.add("localPort", cl.GetMethod("getConnectionInfo"), cli.GetField("localPort"));
            r.add("remoteHost", cl.GetMethod("getConnectionInfo"), cli.GetField("remoteAddress"));
            r.add("remotePort", cl.GetMethod("getConnectionInfo"), cli.GetField("remotePort"));

            cli = typeof(Ice.UDPConnectionInfo);
            r.add("mcastHost", cl.GetMethod("getConnectionInfo"), cli.GetField("mcastAddress"));
            r.add("mcastPort", cl.GetMethod("getConnectionInfo"), cli.GetField("mcastPort"));

            AttrsUtil.addEndpointAttributes <T>(r, cl);
        }
Exemplo n.º 4
0
            public AttributeResolverI()
            {
                try
                {
                    Type cl = typeof(DispatchHelper);
                    add("parent", cl.GetMethod("getParent"));
                    add("id", cl.GetMethod("getId"));

                    AttrsUtil.addConnectionAttributes <DispatchMetrics>(this, cl);

                    Type clc = typeof(Ice.Current);
                    add("operation", cl.GetMethod("getCurrent"), clc.GetField("operation"));
                    add("identity", cl.GetMethod("getIdentity"));
                    add("facet", cl.GetMethod("getCurrent"), clc.GetField("facet"));
                    add("current", cl.GetMethod("getCurrent"), clc.GetField("requestId"));
                    add("mode", cl.GetMethod("getMode"));
                }
                catch (Exception)
                {
                    Debug.Assert(false);
                }
            }
Exemplo n.º 5
0
            public AttributeResolverI()
            {
                try
                {
                    Type cl = typeof(DispatchHelper);
                    Add("parent", cl.GetMethod("GetParent") !);
                    Add("id", cl.GetMethod("GetId") !);

                    AttrsUtil.AddConnectionAttributes(this, cl);

                    Type clc = typeof(Current);
                    Add("operation", cl.GetMethod("GetCurrent") !, clc.GetProperty("Operation") !);
                    Add("identity", cl.GetMethod("GetIdentity") !);
                    Add("facet", cl.GetMethod("GetCurrent") !, clc.GetProperty("Facet") !);
                    Add("current", cl.GetMethod("GetCurrent") !, clc.GetProperty("RequestId") !);
                    Add("mode", cl.GetMethod("GetMode") !);
                }
                catch (Exception)
                {
                    Debug.Assert(false);
                }
            }