org.rhq.enterprise.server.plugins.rhnhosted
Class RHNActivator

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.rhnhosted.RHNActivator

public class RHNActivator
extends Object

Author:
pkilambi

Constructor Summary
RHNActivator(String certificateTextIn, String serverUrlIn)
          RHN Connector Constructor
RHNActivator(String systemIdString, String certificateTextIn, String serverUrlIn)
          Constructor
 
Method Summary
protected  boolean deleteCertTempFile(String fileName)
          Delete the certificate file from the filesystem.
 String getSystemid()
           
static void main(String[] args)
           
protected  XmlRpcExecutor newClient(URL serverUrl)
           
 void processActivation()
          Call that invokes the server object and passing in the xmlrpc exposed call to activate the rhq server.
 void processDeActivation()
          Call that invokes the server object and passing in the xmlrpc exposed call to deactivate the rhq server.
 PublicKeyRing readDefaultKeyRing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RHNActivator

public RHNActivator(String systemIdString,
                    String certificateTextIn,
                    String serverUrlIn)
             throws Exception
Constructor

Parameters:
systemIdString - xml systemid
certificateTextIn - certificate file path
serverUrlIn - hosted server url as a string
Throws:
Exception

RHNActivator

public RHNActivator(String certificateTextIn,
                    String serverUrlIn)
             throws Exception
RHN Connector Constructor

Parameters:
certificateTextIn - certificate text as a string
serverUrlIn - hosted serverUrl
Throws:
Exception
Method Detail

newClient

protected XmlRpcExecutor newClient(URL serverUrl)

processActivation

public void processActivation()
                       throws Exception
Call that invokes the server object and passing in the xmlrpc exposed call to activate the rhq server.

Throws:
Exception

processDeActivation

public void processDeActivation()
                         throws Exception
Call that invokes the server object and passing in the xmlrpc exposed call to deactivate the rhq server.

Throws:
Exception

readDefaultKeyRing

public PublicKeyRing readDefaultKeyRing()
                                 throws ClassNotFoundException,
                                        KeyException,
                                        IOException
Throws:
ClassNotFoundException
KeyException
IOException

deleteCertTempFile

protected boolean deleteCertTempFile(String fileName)
Delete the certificate file from the filesystem.

Parameters:
fileName - certificate filename
Returns:
boolean returns delete operation status

getSystemid

public String getSystemid()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.