Exemplo n.º 1
0
def deleteDistributedQueue(queueName, jmsModule):
    print 'Deleting Uniform Distributed Queue : ' + queueName + '...'
    cmo = wlst.cd('/JMSSystemResources/' + jmsModule + '/JMSResource/' +
                  jmsModule + '/UniformDistributedQueues/')
    wlst.delete(queueName)

    print 'Deleting Uniform Distributed Queue : ' + queueName + '...end.'
Exemplo n.º 2
0
def createWlsAdminUser(username, password):
    print("Creating admin user")
    wlst.cd('/Security/base_domain/User')
    wlst.delete('weblogic', 'User')
    wlst.create(username, 'User')
    wlst.cd(username)
    wlst.set('Password', password)
    wlst.set('IsDefaultAdmin', '1')
    wlst.assign('User', username, 'Group', 'Deployers')
    print("Done")
def delete(name, folder):
    """
    Delete an MBean of the specified name and type at the current location.
    :param name: the MBean name
    :param folder: the MBean type
    :raises: PyWLSTException: if a WLST error occurs
    """
    _method_name = 'delete'
    _logger.finest('WLSDPLY-00019', name, folder, class_name=_class_name, method_name=_method_name)

    try:
        wlst.delete(name, folder)
    except (wlst.WLSTException, offlineWLSTException), e:
        pwe = exception_helper.create_pywlst_exception('WLSDPLY-00020', name, folder, _get_exception_mode(e),
                                                       _format_exception(e), error=e)
        _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe)
        raise pwe
Exemplo n.º 4
0
def delete(name, type):
    return wlst.delete(name, type)
Exemplo n.º 5
0
def deleteJMSSubDeployment(jmsModule, subDeploymentName):
    cmo = wlst.cd('/SystemResources/' + jmsModule + '/' + 'SubDeployments')
    wlst.delete(subDeploymentName)
Exemplo n.º 6
0
def deleteServer(serverName):
    # create server
    cmo = wlst.cd('/Servers')
    wlst.delete(serverName, 'Server')
Exemplo n.º 7
0
def deleteJMSServer(jmsServerName):
    cmo = wlst.cd('/JMSServers')
    wlst.delete(jmsServerName)
Exemplo n.º 8
0
def deleteJMSModule(moduleName):
    print 'Deleting a JMS System module named : ' + moduleName + '...'
    cmo = wlst.cd('/SystemResources')
    wlst.delete(moduleName, 'JMSSystemResource')
    print 'Deleting a JMS System module named : ' + moduleName + '...end.'
Exemplo n.º 9
0
def deleteFilestore(filestoreName):
    cmo = wlst.cd('/FileStores')
    wlst.delete(filestoreName)
Exemplo n.º 10
0
def deleteUnixMachine(name):
    cmo = wlst.cd('/')
    cmo = wlst.cd('/Machines/')
    wlst.delete(name, 'Machine')
Exemplo n.º 11
0
def deleteDataSource(dsName):
    cmo = wlst.cd('/JDBCSystemResources')
    wlst.delete(dsName, 'JDBCSystemResource')