Previous Topic: Class ManagementNext Topic: list (Class Management)--Retrieve List of Classes in a Package


class export

Export a class.

Syntax
class export class dir [ --force ] [ --nocompress ]  
Parameters
class

name of class to be exported. May specify one of the following:

application/catalog:class - export local application catalog class

/catalog:class - export global catalog class

dir

Name of exchange directory relative to /vol/_impex where class is to be exported to

--force

Option to allow exporting of class even if it is already present (that is, the class is removed and then exported)

--nocompress

Do not compress class volumes.

Examples
class export sugarcrm/local:NAS nas

Export application local catalog class

class export /system:NAS nas

Export global catalog class

Note:If executed by a grid maintainer, the exchange directory (<dir>) argument may contain a subdirectory relative to the /vol/_impex directory.

class get_desc

Display class descriptor.

Syntax
class get_desc class  
Parameters
class

name of class for which to display descriptor May specify one of the following:

application:class - display application singleton class descriptor

application/catalog:class - display application local catalog class descriptor

/catalog:class - display global catalog class descriptor

Examples
class get_desc /system:MYCLASS

display global catalog class descriptor

class get_desc myapp:MYCLASS

display application singleton class descriptor

class import

Import a class to a package.

Syntax
class import <class> <dir> [ store=<store> ] [--force] [ user=<user> [ pwd=- ] ]  
Parameters
<class>

name of class to be imported. May specify one of the following:

application/catalog:class - import local application catalog class

/catalog:class - import global catalog class

<dir>

Name of exchange directory from which the class is to be imported. The directory may be one of the following:

- directory relative to /vol/_impex

- URL with the following format 'http://path'.

<store>

Specifies the volume store where volumes are created. May be set to one of the following values:

local - store volumes on local server storage

san - store volumes on a SAN

--force

Option to allow importing of class even if it is already present (that is, the class is removed and then imported)

user=<user>

Name of user to use for authentication purposes when importing the class from a URL

pwd=-

(Optional) Prompt for password to use for authentication purposes when importing the class from a URL. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).

Examples
class import /system:MYSQL5 mysql5 

import 'MYSQL5' class to global catalog

class import my-app/local:MYSQL mysql

import 'MYSQL' class to local catalog of application 'my-app'

Note: If executed by a grid maintainer, the exchange directory (<dir>) argument may contain a subdirectory relative to the /vol/_impex directory.