Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CacheEvent" /> class.
        /// </summary>
        /// <param name="regionPath">Cache region path.</param>
        /// <param name="key">Cache key as <see cref="T:System.String" /></param>
        /// <param name="eventType"><see cref="T:TcmCDService.CacheTypes.CacheEventType" /></param>
        public CacheEvent(string regionPath, string key, CacheEventType eventType) : base(JNIHandle.NULL)
        {
            jvalue[] args = new jvalue[3];

            using (JavaMethodArguments arguments = new JavaMethodArguments(args).Add(regionPath).Add(key).Add((int)eventType))
            {
                base.JObject = (long)mConstructor.CallObject(this, arguments);
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="RMICacheChannelConnector"/> class.
        /// </summary>
        /// <param name="host">Tridion Cache Channel RMI Host</param>
        /// <param name="port">Tridion Cache Channel RMI Port</param>
        /// <param name="instanceIdentifier">Tridion Instance identifier.</param>
        public RMICacheChannelConnector(String host, int port, String instanceIdentifier) : base(JNIHandle.NULL)
        {
            jvalue[] args = new jvalue[3];

            using (JavaMethodArguments arguments = new JavaMethodArguments(args).Add(host).Add(port).Add(instanceIdentifier))
            {
                base.JObject = (long)mConstructor2.CallObject(this, arguments);
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="RMICacheChannelConnector"/> class.
 /// </summary>
 public RMICacheChannelConnector() : base(JNIHandle.NULL)
 {
     base.JObject = (long)mConstructor1.CallObject(this);
 }