Package backend :: Package server :: Package rhnServer :: Module server_class :: Class Server
[hide private]
[frames] | no frames]

Class Server

source code


Main Server class

Instance Methods [hide private]
 
__init__(self, user, arch=None, org_id=None) source code
 
set_arch(self, arch) source code
 
default_description(self) source code
 
__repr__(self) source code
 
__str__(self) source code
 
system_id(self) source code
 
getid(self) source code
 
change_base_channel(self, new_rel) source code
 
take_snapshot(self, reason) source code
 
base_channel_is_eol(self) source code
 
load_custom_info(self) source code
 
load_token(self) source code
 
use_token(self) source code
 
disable_token(self) source code
 
autoentitle(self) source code
 
_entitle(self, entitlement) source code
 
create_perm_cache(self) source code
 
gen_secret(self) source code
 
update_uuid(self, uuid, commit=1) source code
 
handle_virtual_guest(self) source code
 
__save(self, channel) source code
 
save(self, commit=1, channel=None) source code
 
reload(self, server, reload_all=0) source code
 
loadcert(self, cert, load_user=1) source code
 
check_entitlement(self) source code
 
checkin(self, commit=1)
convenient wrapper for these thing until we clean the code up
source code
 
throttle(self)
convenient wrapper for these thing until we clean the code up
source code
 
set_qos(self)
convenient wrapper for these thing until we clean the code up
source code
 
join_groups(self)
For a new server, join server groups
source code
 
fetch_registration_message(self) source code
 
process_kickstart_info(self) source code
 
flush_actions(self) source code
 
server_locked(self)
Returns true is the server is locked (for actions that are blocked)
source code
 
register_push_client(self)
insert or update rhnPushClient for this server_id
source code
 
register_push_client_jid(self, jid)
update the JID in the corresponing entry from rhnPushClient
source code

Inherited from server_wrapper.ServerWrapper: add_package, delete_hardware, delete_package, dispose_packages, reload_hardware, save_hardware, save_history, save_packages, set_value

Inherited from server_packages.Packages: get_package_arches, get_packages, reload_packages_byid, save_packages_byid

Inherited from server_hardware.Hardware: add_hardware, hardware_by_class, reload_hardware_byid, save_hardware_byid

Inherited from server_history.History: add_history, save_history_byid

Class Variables [hide private]
  _query_lookup_arch = <spacewalk.server.rhnSQL.sql_base.Stateme...
  _query_server_custom_info = <spacewalk.server.rhnSQL.sql_base....
  _query_update_uuid = <spacewalk.server.rhnSQL.sql_base.Stateme...
  _query_insert_uuid = <spacewalk.server.rhnSQL.sql_base.Stateme...
Method Details [hide private]

__init__(self, user, arch=None, org_id=None)
(Constructor)

source code 
Overrides: server_history.History.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: server_wrapper.ServerWrapper.__repr__

Class Variable Details [hide private]

_query_lookup_arch

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081299841\
6; statement=
        select sa.id,
               case when at.label = 'rpm' then 1 else 0 end is_rpm_man\
aged
          from rhnServerArch sa,
               rhnArchType at
         where sa.label = :archname
...

_query_server_custom_info

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081299848\
8; statement=
    select cdk.label,
           scdv.value
      from rhnCustomDataKey cdk,
           rhnServerCustomDataValue scdv
     where scdv.server_id = :server_id
       and scdv.key_id = cdk.id
...

_query_update_uuid

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081299856\
0; statement=
        update rhnServerUuid set uuid = :uuid
         where server_id = :server_id
    

_query_insert_uuid

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081299863\
2; statement=
        insert into rhnServerUuid (server_id, uuid)
        values (:server_id, :uuid)