/// <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> /// Unexports a previously exported object /// </summary> /// <param name="obj"><see cref="T:Java.Lang.Object" /></param> /// <param name="force">if set to <c>true</c> [force unexport].</param> /// <returns><c>true</c> if unexported, otherwise <c>false</c>.</returns> public static bool UnexportObject(JuggerNETProxyObject javaProxyObject, bool force) { jvalue[] args = new jvalue[2]; using (JavaMethodArguments arguments = new JavaMethodArguments(args).Add(javaProxyObject).Add(force)) { return(mUnexportObject.CallBool(null, arguments)); } }
/// <summary> /// Unexports a previously exported object /// </summary> /// <param name="obj"><see cref="T:Java.Lang.Object" /></param> /// <param name="force">if set to <c>true</c> [force unexport].</param> /// <returns><c>true</c> if unexported, otherwise <c>false</c>.</returns> public static bool UnexportObject(JuggerNETProxyObject javaProxyObject, bool force) { jvalue[] args = new jvalue[2]; using (JavaMethodArguments arguments = new JavaMethodArguments(args).Add(javaProxyObject).Add(force)) { return mUnexportObject.CallBool(null, arguments); } }
/// <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.Int32" /></param> /// <param name="eventType"><see cref="T:TcmCDService.CacheTypes.CacheEventType" /></param> public CacheEvent(string regionPath, int key, CacheEventType eventType) : base(JNIHandle.NULL) { jvalue[] args = new jvalue[3]; using (JavaMethodArguments arguments = new JavaMethodArguments(args).Add(regionPath).Add(new Java.Lang.Integer(key)).Add((int)eventType)) { base.JObject = (long)mConstructor.CallObject(this, arguments); } }