Class RmiSeparateProcessConnection
java.lang.Object
com._1c.g5.v8.dt.internal.pm.connection.rmi.RmiSeparateProcessConnection
- All Implemented Interfaces:
IConnection
,Invalidatable
,UncaughtExceptionsGenerator
,AutoCloseable
Represents connection of separate process with host.
-
Constructor Summary
ConstructorsConstructorDescriptionRmiSeparateProcessConnection
(IProcessRegister register, IRemoteInvokerProvider remoteInvokerProvider, IRemoteInvokerProvider stub) Constructs new instance with givenIProcessRegister
,IRemoteInvokerProvider
instance and exported stub to it. -
Method Summary
-
Constructor Details
-
RmiSeparateProcessConnection
public RmiSeparateProcessConnection(IProcessRegister register, IRemoteInvokerProvider remoteInvokerProvider, IRemoteInvokerProvider stub) Constructs new instance with givenIProcessRegister
,IRemoteInvokerProvider
instance and exported stub to it.- Parameters:
register
- givenIProcessRegister
(notnull
)remoteInvokerProvider
- givenIRemoteInvokerProvider
instance (notnull
)stub
- given exported stub toIRemoteInvokerProvider
instance (notnull
)
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:Invalidatable
Returns if this instance is not closed.- Specified by:
isValid
in interfaceInvalidatable
- Returns:
true
, ifAutoCloseable.close()
was not called,false
otherwise
-
setUncaughtExceptionHandler
SetsThread.UncaughtExceptionHandler
. Always throwsUnsupportedOperationException
.- Specified by:
setUncaughtExceptionHandler
in interfaceUncaughtExceptionsGenerator
- Parameters:
handler
- givenThread.UncaughtExceptionHandler
(notnull
)
-
close
Description copied from interface:IConnection
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIConnection
- Throws:
IOException
- if operatin failed due to I/O exception
-