Base Framework
Public Member Functions | List of all members
LocalScheme Class Reference

Process local object request broker scheme. More...

#include <base/rmi/LocalScheme.h>

Inherits OrbScheme.

Public Member Functions

 LocalScheme () noexcept
 
String getUrn () const noexcept
 
String getScheme () const noexcept
 
unsigned int getNumberOfConnections () const noexcept
 
Reference< OrbConnectionFactoryopenFactory (const String &identifier)
 
Reference< OrbConnectionopen (ProtectedPointer< Orb > orb, const String &identifier)
 
void add (Reference< OrbConnection > connection)
 
void remove (Reference< OrbConnection > connection)
 
Reference< OrbConnectiongetConnection (const String &endPoint)
 
void run (ProtectedPointer< Orb > orb)
 
void terminate () noexcept
 
void close (Reference< OrbConnection > connection)
 
 ~LocalScheme () noexcept
 
- Public Member Functions inherited from Polymorphic
 Polymorphic () noexcept
 
virtual ~Polymorphic () noexcept
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Detailed Description

Process local object request broker scheme.

Process local object request broker scheme.

Version
1.0

Constructor & Destructor Documentation

◆ LocalScheme()

LocalScheme::LocalScheme ( )
noexcept

Initializes the scheme.

◆ ~LocalScheme()

LocalScheme::~LocalScheme ( )
noexcept

Destroys the scheme.

Member Function Documentation

◆ add()

void LocalScheme::add ( Reference< OrbConnection connection)
virtual

Adds a connection.

Implements OrbScheme.

◆ close()

void LocalScheme::close ( Reference< OrbConnection connection)

Closes the specified connection.

◆ getConnection()

Reference<OrbConnection> LocalScheme::getConnection ( const String endPoint)

Returns the connection for the specified end point.

◆ getNumberOfConnections()

unsigned int LocalScheme::getNumberOfConnections ( ) const
inlinevirtualnoexcept

Returns the current number of connections.

Implements OrbScheme.

◆ getScheme()

String LocalScheme::getScheme ( ) const
virtualnoexcept

Returns the scheme identifying the scheme within the application (e.g. "local").

Implements OrbScheme.

◆ getUrn()

String LocalScheme::getUrn ( ) const
virtualnoexcept

Returns the global identifier of the scheme (e.g. "urn:rmi:orb:scheme:tcpip").

Implements OrbScheme.

◆ open()

Reference<OrbConnection> LocalScheme::open ( ProtectedPointer< Orb orb,
const String identifier 
)
virtual

Returns a connection for the specified identifier. New connections are established on demand. LocalConnection is assumed if the scheme is missing.

Implements OrbScheme.

◆ openFactory()

Reference<OrbConnectionFactory> LocalScheme::openFactory ( const String identifier)
virtual

Creates a new factory for the specified local end point.

Parameters
identifierThe identifier of the factory end point.

Reimplemented from OrbScheme.

◆ remove()

void LocalScheme::remove ( Reference< OrbConnection connection)
virtual

Removes a connection.

Implements OrbScheme.

◆ run()

void LocalScheme::run ( ProtectedPointer< Orb orb)
virtual

Invoked by ORB.

Implements OrbScheme.

◆ terminate()

void LocalScheme::terminate ( )
virtualnoexcept

Signals the protocol to be terminated.

Implements OrbScheme.