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.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Runtime.Remoting.RemotingServicesstatic JCType
classType
The 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 RemotingServices
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoRemotingServices
, a cast assert is made to check if types are compatible.static NetObject
Connect(NetType classToProxy, java.lang.String url)
static NetObject
Connect(NetType classToProxy, java.lang.String url, NetObject data)
static boolean
Disconnect(MarshalByRefObject obj)
static IMethodReturnMessage
ExecuteMessage(MarshalByRefObject target, IMethodCallMessage reqMsg)
static IMessageSink
GetEnvoyChainForProxy(MarshalByRefObject obj)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic NetObject
GetLifetimeService(MarshalByRefObject obj)
static MethodBase
GetMethodBaseFromMethodMessage(IMethodMessage msg)
static void
GetObjectData(NetObject obj, SerializationInfo info, StreamingContext context)
static java.lang.String
GetObjectUri(MarshalByRefObject obj)
static ObjRef
GetObjRefForProxy(MarshalByRefObject obj)
static RealProxy
GetRealProxy(NetObject proxy)
static NetType
GetServerTypeForUri(java.lang.String URI)
static java.lang.String
GetSessionIdForMethodMessage(IMethodMessage msg)
static boolean
IsMethodOverloaded(IMethodMessage msg)
static boolean
IsObjectOutOfAppDomain(NetObject tp)
static boolean
IsObjectOutOfContext(NetObject tp)
static boolean
IsOneWay(MethodBase method)
static boolean
IsTransparentProxy(NetObject proxy)
static void
LogRemotingStage(int stage)
static ObjRef
Marshal(MarshalByRefObject Obj)
static ObjRef
Marshal(MarshalByRefObject Obj, java.lang.String URI)
static ObjRef
Marshal(MarshalByRefObject Obj, java.lang.String ObjURI, NetType RequestedType)
void
setJCOInstance(JCObject instance)
static void
SetObjectUriForMarshal(MarshalByRefObject obj, java.lang.String uri)
static NetObject
Unmarshal(ObjRef objectRef)
static NetObject
Unmarshal(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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static RemotingServices cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoRemotingServices
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
RemotingServices
instance- 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.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
NotImplementedException
-
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.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
-
IsOneWay
public static boolean IsOneWay(MethodBase method) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
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.Throwable
ArgumentNullException
InvalidOperationException
RemotingException
ArgumentException
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
NullReferenceException
NotSupportedException
ApplicationException
OutOfMemoryException
FormatException
InvalidCastException
-
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.Throwable
ArgumentNullException
InvalidOperationException
RemotingException
ArgumentException
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
NullReferenceException
NotSupportedException
ApplicationException
OutOfMemoryException
FormatException
InvalidCastException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
RemotingException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
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.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
TypeLoadException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
RemotingException
IndexOutOfRangeException
SecurityException
InvalidCastException
NotImplementedException
-
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.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
TypeLoadException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
RemotingException
IndexOutOfRangeException
SecurityException
InvalidCastException
NotImplementedException
-
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.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
-
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.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
RemotingException
SecurityException
NullReferenceException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
CultureNotFoundException
InvalidCastException
MissingMethodException
TargetInvocationException
NotSupportedException
-
GetObjRefForProxy
public static ObjRef GetObjRefForProxy(MarshalByRefObject obj) throws java.lang.Throwable, RemotingException
- Throws:
java.lang.Throwable
RemotingException
-
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.Throwable
ArgumentNullException
RemotingException
OutOfMemoryException
ObjectDisposedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
MissingMethodException
TargetInvocationException
NotSupportedException
NotImplementedException
SerializationException
NullReferenceException
-
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
-
-