Package system.net.peertopeer
Class PeerNameRegistration
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.peertopeer.PeerNameRegistration
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ISerializable
public class PeerNameRegistration extends NetObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Net.PeerToPeer.PeerNameRegistration, System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.PeerToPeer.PeerNameRegistration
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: System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Netstatic java.lang.StringclassNameQualified class name: System.Net.PeerToPeer.PeerNameRegistrationstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PeerNameRegistration()PeerNameRegistration(java.lang.Object instance)Internal constructor.PeerNameRegistration(PeerName name, int port)PeerNameRegistration(PeerName name, int port, Cloud cloud)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeerNameRegistrationcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPeerNameRegistration, a cast assert is made to check if types are compatible.voidclose()voidDispose()CloudgetCloud()java.lang.StringgetComment()byte[]getData()IPEndPointCollectiongetEndPointCollection()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 TypePeerNamegetPeerName()intgetPort()booleangetUseAutoEndPointSelection()booleanIsRegistered()voidsetCloud(Cloud Cloud)voidsetComment(java.lang.String Comment)voidsetData(byte[] Data)voidsetJCOInstance(JCObject instance)voidsetPeerName(PeerName PeerName)voidsetPort(int Port)voidsetUseAutoEndPointSelection(boolean UseAutoEndPointSelection)voidStart()voidStop()voidUpdate()-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.PeerToPeer.PeerNameRegistration- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PeerNameRegistration
public PeerNameRegistration(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
PeerNameRegistration
public PeerNameRegistration() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
PeerNameRegistration
public PeerNameRegistration(PeerName name, int port) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionFormatExceptionIndexOutOfRangeException
-
PeerNameRegistration
public PeerNameRegistration(PeerName name, int port, Cloud cloud) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, InvalidCastException, NullReferenceException, FormatException, OverflowException, PlatformNotSupportedException, Win32Exception, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionInvalidCastExceptionNullReferenceExceptionFormatExceptionOverflowExceptionPlatformNotSupportedExceptionWin32ExceptionIndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- 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- Specified by:
getJCOClassNamein interfaceISerializable- 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- Specified by:
getJCOObjectNamein interfaceISerializable- 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- Specified by:
getJCOInstancein interfaceISerializable- 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- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PeerNameRegistration cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPeerNameRegistration, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PeerNameRegistrationinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsRegistered
public boolean IsRegistered() throws java.lang.Throwable, ObjectDisposedException- Throws:
java.lang.ThrowableObjectDisposedException
-
Dispose
public void Dispose() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, InvalidOperationException
-
Start
public void Start() throws java.lang.Throwable, ObjectDisposedException, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, MissingManifestResourceException, IndexOutOfRangeException, ConfigurationException, ConfigurationErrorsException, NotImplementedException, PathTooLongException, InvalidCastException, NullReferenceException, FormatException, OverflowException, PlatformNotSupportedException, Win32Exception, PeerToPeerException, OutOfMemoryException, SocketException, KeyNotFoundException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionConfigurationExceptionConfigurationErrorsExceptionNotImplementedExceptionPathTooLongExceptionInvalidCastExceptionNullReferenceExceptionFormatExceptionOverflowExceptionPlatformNotSupportedExceptionWin32ExceptionPeerToPeerExceptionOutOfMemoryExceptionSocketExceptionKeyNotFoundException
-
Stop
public void Stop() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException
-
Update
public void Update() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, PeerToPeerException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, InvalidCastException, NullReferenceException, FormatException, OverflowException, PlatformNotSupportedException, Win32Exception, IndexOutOfRangeException, KeyNotFoundException, OutOfMemoryException, SocketException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionPeerToPeerExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionInvalidCastExceptionNullReferenceExceptionFormatExceptionOverflowExceptionPlatformNotSupportedExceptionWin32ExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionOutOfMemoryExceptionSocketException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getUseAutoEndPointSelection
public boolean getUseAutoEndPointSelection() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setUseAutoEndPointSelection
public void setUseAutoEndPointSelection(boolean UseAutoEndPointSelection) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getData
public byte[] getData() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setData
public void setData(byte[] Data) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
getPort
public int getPort() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPort
public void setPort(int Port) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getEndPointCollection
public IPEndPointCollection getEndPointCollection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCloud
public Cloud getCloud() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCloud
public void setCloud(Cloud Cloud) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPeerName
public PeerName getPeerName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPeerName
public void setPeerName(PeerName PeerName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getComment
public java.lang.String getComment() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setComment
public void setComment(java.lang.String Comment) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
-