Package system.runtime.remoting
Class RemotingServices
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.remoting.RemotingServices
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class RemotingServices extends NetObject
The base .NET class managing System.Runtime.Remoting.RemotingServices, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Remoting.RemotingServices
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Runtime.Remoting.RemotingServicesstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description RemotingServices()RemotingServices(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemotingServicescast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoRemotingServices, a cast assert is made to check if types are compatible.static NetObjectConnect(NetType classToProxy, java.lang.String url)static NetObjectConnect(NetType classToProxy, java.lang.String url, NetObject data)static booleanDisconnect(MarshalByRefObject obj)static IMethodReturnMessageExecuteMessage(MarshalByRefObject target, IMethodCallMessage reqMsg)static IMessageSinkGetEnvoyChainForProxy(MarshalByRefObject obj)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic NetObjectGetLifetimeService(MarshalByRefObject obj)static MethodBaseGetMethodBaseFromMethodMessage(IMethodMessage msg)static voidGetObjectData(NetObject obj, SerializationInfo info, StreamingContext context)static java.lang.StringGetObjectUri(MarshalByRefObject obj)static ObjRefGetObjRefForProxy(MarshalByRefObject obj)static RealProxyGetRealProxy(NetObject proxy)static NetTypeGetServerTypeForUri(java.lang.String URI)static java.lang.StringGetSessionIdForMethodMessage(IMethodMessage msg)static booleanIsMethodOverloaded(IMethodMessage msg)static booleanIsObjectOutOfAppDomain(NetObject tp)static booleanIsObjectOutOfContext(NetObject tp)static booleanIsOneWay(MethodBase method)static booleanIsTransparentProxy(NetObject proxy)static voidLogRemotingStage(int stage)static ObjRefMarshal(MarshalByRefObject Obj)static ObjRefMarshal(MarshalByRefObject Obj, java.lang.String URI)static ObjRefMarshal(MarshalByRefObject Obj, java.lang.String ObjURI, NetType RequestedType)voidsetJCOInstance(JCObject instance)static voidSetObjectUriForMarshal(MarshalByRefObject obj, java.lang.String uri)static NetObjectUnmarshal(ObjRef objectRef)static NetObjectUnmarshal(ObjRef objectRef, boolean fRefine)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Runtime.Remoting.RemotingServices- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static RemotingServices cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoRemotingServices, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
RemotingServicesinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Disconnect
public static boolean Disconnect(MarshalByRefObject obj) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, RemotingException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException
-
IsMethodOverloaded
public static boolean IsMethodOverloaded(IMethodMessage msg) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionNotImplementedException
-
IsObjectOutOfAppDomain
public static boolean IsObjectOutOfAppDomain(NetObject tp) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsObjectOutOfContext
public static boolean IsObjectOutOfContext(NetObject tp) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationException
-
IsOneWay
public static boolean IsOneWay(MethodBase method) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.ThrowableArgumentException
-
IsTransparentProxy
public static boolean IsTransparentProxy(NetObject proxy) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Connect
public static NetObject Connect(NetType classToProxy, java.lang.String url) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException, NullReferenceException, NotSupportedException, ApplicationException, OutOfMemoryException, FormatException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionRemotingExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionNullReferenceExceptionNotSupportedExceptionApplicationExceptionOutOfMemoryExceptionFormatExceptionInvalidCastException
-
Connect
public static NetObject Connect(NetType classToProxy, java.lang.String url, NetObject data) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException, NullReferenceException, NotSupportedException, ApplicationException, OutOfMemoryException, FormatException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionRemotingExceptionArgumentExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionNullReferenceExceptionNotSupportedExceptionApplicationExceptionOutOfMemoryExceptionFormatExceptionInvalidCastException
-
GetLifetimeService
public static NetObject GetLifetimeService(MarshalByRefObject obj) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, RemotingException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionRemotingExceptionObjectDisposedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
Unmarshal
public static NetObject Unmarshal(ObjRef objectRef) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, TypeLoadException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, RemotingException, IndexOutOfRangeException, SecurityException, InvalidCastException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionRemotingExceptionIndexOutOfRangeExceptionSecurityExceptionInvalidCastExceptionNotImplementedException
-
Unmarshal
public static NetObject Unmarshal(ObjRef objectRef, boolean fRefine) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, TypeLoadException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, RemotingException, IndexOutOfRangeException, SecurityException, InvalidCastException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionRemotingExceptionIndexOutOfRangeExceptionSecurityExceptionInvalidCastExceptionNotImplementedException
-
GetMethodBaseFromMethodMessage
public static MethodBase GetMethodBaseFromMethodMessage(IMethodMessage msg) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, TypeLoadException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, ArgumentException, CultureNotFoundException, OutOfMemoryException, FormatException, RemotingException, AmbiguousMatchException
-
GetEnvoyChainForProxy
public static IMessageSink GetEnvoyChainForProxy(MarshalByRefObject obj) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationException
-
ExecuteMessage
public static IMethodReturnMessage ExecuteMessage(MarshalByRefObject target, IMethodCallMessage reqMsg) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, RemotingException, SecurityException, NullReferenceException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, CultureNotFoundException, InvalidCastException, MissingMethodException, TargetInvocationException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionRemotingExceptionSecurityExceptionNullReferenceExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidCastExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedException
-
GetObjRefForProxy
public static ObjRef GetObjRefForProxy(MarshalByRefObject obj) throws java.lang.Throwable, RemotingException
- Throws:
java.lang.ThrowableRemotingException
-
Marshal
public static ObjRef Marshal(MarshalByRefObject Obj) throws java.lang.Throwable, RemotingException, ArgumentNullException, OutOfMemoryException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotSupportedException
-
Marshal
public static ObjRef Marshal(MarshalByRefObject Obj, java.lang.String URI) throws java.lang.Throwable, RemotingException, ArgumentNullException, OutOfMemoryException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotSupportedException
-
Marshal
public static ObjRef Marshal(MarshalByRefObject Obj, java.lang.String ObjURI, NetType RequestedType) throws java.lang.Throwable, RemotingException, ArgumentNullException, OutOfMemoryException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotSupportedException
-
GetRealProxy
public static RealProxy GetRealProxy(NetObject proxy) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetObjectUri
public static java.lang.String GetObjectUri(MarshalByRefObject obj) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetSessionIdForMethodMessage
public static java.lang.String GetSessionIdForMethodMessage(IMethodMessage msg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetServerTypeForUri
public static NetType GetServerTypeForUri(java.lang.String URI) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, RemotingException, ObjectDisposedException, AbandonedMutexException, SecurityException, NotSupportedException, InvalidOperationException
-
GetObjectData
public static void GetObjectData(NetObject obj, SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentNullException, RemotingException, OutOfMemoryException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, SerializationException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentNullExceptionRemotingExceptionOutOfMemoryExceptionObjectDisposedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionSerializationExceptionNullReferenceException
-
LogRemotingStage
public static void LogRemotingStage(int stage) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
SetObjectUriForMarshal
public static void SetObjectUriForMarshal(MarshalByRefObject obj, java.lang.String uri) throws java.lang.Throwable, RemotingException, ArgumentException, ArgumentNullException, InvalidOperationException, NullReferenceException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, IndexOutOfRangeException
-
-