internal EvaluatorRequestor(IEvaluatorRequestorClr2Java clr2Java) { Clr2Java = clr2Java; byte[] data = Clr2Java.GetDefinedRuntimes(); runtimes = DefinedRuntimesSerializer.FromBytes(data); LOGGER.Log(Level.Info, "Defined runtimes " + ((runtimes.runtimeNames == null) ? "null" : string.Join(",", runtimes.runtimeNames))); }
public static void Call_ClrSystemEvaluatorRequestor_OnNext(ulong handle, IEvaluatorRequestorClr2Java clr2Java) { using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemEvaluatorRequestor_OnNext")) { GCHandle gc = GCHandle.FromIntPtr((IntPtr)handle); ClrSystemHandler<IEvaluatorRequestor> obj = (ClrSystemHandler<IEvaluatorRequestor>)gc.Target; obj.OnNext(new EvaluatorRequestor(clr2Java)); } }
public static void Call_ClrSystemEvaluatorRequestor_OnNext(ulong handle, IEvaluatorRequestorClr2Java clr2Java) { using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemEvaluatorRequestor_OnNext")) { GCHandle gc = GCHandle.FromIntPtr((IntPtr)handle); ClrSystemHandler <IEvaluatorRequestor> obj = (ClrSystemHandler <IEvaluatorRequestor>)gc.Target; obj.OnNext(new EvaluatorRequestor(clr2Java)); } }
/// <summary> /// Configure and return a manager object holding all subscriptions given to REEF events on the .NET side. /// </summary> /// <param name="httpServerPort">String representation of the http port of the Java-side driver.</param> /// <param name="evaluatorRequestorClr2Java">Proxy object to the Java evaluator requestor object.</param> /// <returns><see cref="BridgeHandlerManager"/> object that contains .NET handles for each REEF event.</returns> public static BridgeHandlerManager Call_ClrSystem_SetupBridgeHandlerManager( string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystem_SetupBridgeHandlerManager")) { LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); return(GetHandlers(httpServerPort, evaluatorRequestor)); } }
//Deprecate, remove after both Java and C# code gets checked in public static ulong[] Call_ClrSystemStartHandler_OnStart( DateTime startTime, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemStartHandler_OnStart")) { LOGGER.Log(Level.Info, "*** Start time is " + startTime); return(GetHandlers(null, evaluatorRequestor)); } }
public static BridgeHandlerManager Call_ClrSystemRestartHandler_OnRestart( string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java, IDriverRestartedClr2Java driverRestartedClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemRestartHandler_OnRestart")) { LOGGER.Log(Level.Info, "*** Restart time is " + driverRestartedClr2Java.GetStartTime()); LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); var handlers = GetHandlers(httpServerPort, evaluatorRequestor); _driverBridge.RestartHandlerOnNext(driverRestartedClr2Java); return(handlers); } }
public static ulong[] Call_ClrSystemStartHandler_OnStart( DateTime startTime, string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemStartHandler_OnStart")) { LOGGER.Log(Level.Info, "*** Start time is " + startTime); LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); var handlers = GetHandlers(httpServerPort, evaluatorRequestor); _driverBridge.StartHandlersOnNext(startTime); _driverBridge.ObsoleteEvaluatorRequestorOnNext(evaluatorRequestor); return(handlers); } }
public EvaluatorRequestor(IEvaluatorRequestorClr2Java clr2Java) { InstanceId = Guid.NewGuid().ToString("N"); Clr2Java = clr2Java; }
public static ulong[] Call_ClrSystemRestartHandler_OnRestart( DateTime startTime, string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemRestartHandler_OnRestart")) { LOGGER.Log(Level.Info, "*** Restart time is " + startTime); LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); var handlers = GetHandlers(httpServerPort, evaluatorRequestor); _driverBridge.RestartHandlerOnNext(startTime); return handlers; } }
//Deprecate, remove after both Java and C# code gets checked in public static ulong[] Call_ClrSystemStartHandler_OnStart( DateTime startTime, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemStartHandler_OnStart")) { LOGGER.Log(Level.Info, "*** Start time is " + startTime); return GetHandlers(null, evaluatorRequestor); } }
public static BridgeHandlerManager Call_ClrSystemRestartHandler_OnRestart( string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java, IDriverRestartedClr2Java driverRestartedClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemRestartHandler_OnRestart")) { LOGGER.Log(Level.Info, "*** Restart time is " + driverRestartedClr2Java.GetStartTime()); LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); var handlers = GetHandlers(httpServerPort, evaluatorRequestor); _driverBridge.RestartHandlerOnNext(driverRestartedClr2Java); return handlers; } }
internal EvaluatorRequestor(IEvaluatorRequestorClr2Java clr2Java) { Clr2Java = clr2Java; }
/// <summary> /// Configure and return a manager object holding all subscriptions given to REEF events on the .NET side. /// </summary> /// <param name="httpServerPort">String representation of the http port of the Java-side driver.</param> /// <param name="evaluatorRequestorClr2Java">Proxy object to the Java evaluator requestor object.</param> /// <returns><see cref="BridgeHandlerManager"/> object that contains .NET handles for each REEF event.</returns> public static BridgeHandlerManager Call_ClrSystem_SetupBridgeHandlerManager( string httpServerPort, IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java) { IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java); using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystem_SetupBridgeHandlerManager")) { LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort); return GetHandlers(httpServerPort, evaluatorRequestor); } }