OSB_CORBA::Resource_i Class Reference

Inheritance diagram for OSB_CORBA::Resource_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::Resource_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Servant implementation of corba::res::Resource.

Definition at line 62 of file resource_i.h.

Public Member Functions

Implementation of Resource interface.

Static Public Attributes

Protected Types

Protected Member Functions

Protected Attributes


Member Typedef Documentation

typedef OSB_LIB::ResourceList<OSB_LIB::Resource>::Rg OSB_CORBA::Resource_i::ReadGuard [protected]

Read lock to the resource.

Definition at line 167 of file resource_i.h.


Constructor & Destructor Documentation

OSB_CORBA::Resource_i::Resource_i ( NetworkManager_i nmgri,
const OSB_LIB::Resource::Oid oid 
)

Constructor with managing class and OSB library object id.

OSB_CORBA::Resource_i::~Resource_i (  ) 

Empty virtual destructor.


Member Function Documentation

Date OSB_CORBA::Resource_i::assigned (  )  throw (CORBA::SystemException, OsbCorbaException)

First assignment date of the resource.

It needn't be set.

Boolean OSB_CORBA::Resource_i::canDel (  )  throw (CORBA::SystemException, OsbCorbaException)

Check if the resource can be deleted.

Boolean OSB_CORBA::Resource_i::canUpd (  )  throw (CORBA::SystemException, OsbCorbaException)

Check if the resource can be updated.

ResourceId OSB_CORBA::Resource_i::id (  )  throw (CORBA::SystemException, OsbCorbaException)

The resource object id.

Boolean OSB_CORBA::Resource_i::isAvailable (  )  throw (CORBA::SystemException, OsbCorbaException)

Check if the resource is available.

Returns:
true if the resource available, else false.
Note that the return value depends on the actual resource type.
By default a resource is available if the status is available or quarantine and the quarantine time has expired.

Boolean OSB_CORBA::Resource_i::isPrepaid (  )  throw (CORBA::SystemException, OsbCorbaException)

Prepaid resource?

virtual ReadGuard OSB_CORBA::Resource_i::lock (  )  const [protected, pure virtual]

Read lock the resource.

Implemented in OSB_CORBA::AccessNumber_i, OSB_CORBA::E164Resource_i, OSB_CORBA::Ip4Address_i, OSB_CORBA::IpGroup_i, and OSB_CORBA::TrunkResource_i.

NetworkElementId OSB_CORBA::Resource_i::networkElementId (  )  throw (CORBA::SystemException, OsbCorbaException)

The id of the resource's network element.

It needn't be set.

NetworkId OSB_CORBA::Resource_i::networkId (  )  throw (CORBA::SystemException, OsbCorbaException)

The id of the resource's network.

It needn't be set.

corba::imgmt::PoolId OSB_CORBA::Resource_i::poolId (  )  throw (CORBA::SystemException, OsbCorbaException)

The inventory pool of the resource.

It is not set (0) if the resource is not assigned to a pool.

Date OSB_CORBA::Resource_i::quarantineEnd (  )  throw (CORBA::SystemException, OsbCorbaException)

End date of the quarantine period.

It needn't be set.

Utf8String* OSB_CORBA::Resource_i::resNumber (  )  throw (CORBA::SystemException, OsbCorbaException)

The resource number.

ResourceStatus OSB_CORBA::Resource_i::status (  )  throw (CORBA::SystemException, OsbCorbaException)

The status of the resource.

ResourceTypeId OSB_CORBA::Resource_i::type (  )  throw (CORBA::SystemException, OsbCorbaException)

The resource type.


Member Data Documentation

const std::string OSB_CORBA::Resource_i::IFC [static]

String representation of Resource_i.

Reimplemented in OSB_CORBA::AccessNumber_i, OSB_CORBA::AccessNumberWriter_i, OSB_CORBA::E164Resource_i, OSB_CORBA::E164ResourceWriter_i, OSB_CORBA::Ip4Address_i, OSB_CORBA::Ip4AddressWriter_i, OSB_CORBA::IpGroup_i, OSB_CORBA::IpGroupWriter_i, OSB_CORBA::ResourceWriter_i, OSB_CORBA::TrunkResource_i, and OSB_CORBA::TrunkResourceWriter_i.

Definition at line 67 of file resource_i.h.

NetworkManager_i& OSB_CORBA::Resource_i::nmgri_ [protected]

Reference to network manager.

Definition at line 174 of file resource_i.h.

const OSB_LIB::Resource::Oid OSB_CORBA::Resource_i::resId_ [protected]

The object id of the resource.

Definition at line 177 of file resource_i.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:28:19 2006 for OSB Library by  doxygen 1.4.7