|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.registry.Registry | +--com.ibm.as400.registry.AS400Registry
The Registry
implementation that stores data
in the form of binary files in the local file system. This is the
default implementation returned by Registry.getInstance
.
Use of this registry type is preferred over WindowsRegistry
,
which is not available on all platforms.
Applications should call the method setApplicationName
to specify
a unique name which will be used to name the files in the backing store.
If no name is supplied the name "MyApplication" will be used. In production,
taking the default is not recommended since multiple applications could
share the same backing store, causing unpredictable behavior resulting from
naming collisions in the node hierarchy.
The files which comprise the backing store are created in a config
subdirectory under the platform-defined current directory. Applications should
ensure that the current directory is set correctly on startup.
Registry
Field Summary | |
static java.lang.String |
OPNAV_APPLICATION
The pathname of the Operations Navigator registry node in the application namespace that contains configuration data for installed components. |
static java.lang.String |
OPNAV_PLATFORM
The pathname of the Operations Navigator registry node in the platform namespace that contains configuration data common to all users. |
static java.lang.String |
OPNAV_SERVERS
The pathname of the Operations Navigator registry node in the servers namespace that contains configuration data for each data server. |
static java.lang.String |
OPNAV_USER
The pathname of the Operations Navigator registry node in the user namespace that contains configuration data specific to the current user. |
Fields inherited from class com.ibm.as400.registry.Registry |
APPLICATION_REGISTRY,
APPLICATION_ROOT,
AS400_REGISTRY,
LDAP_REGISTRY,
PLATFORM_ROOT,
REGISTRY_VERSION,
SERVERS_ROOT,
SESSION_ROOT,
USER_ROOT,
WINDOWS_REGISTRY |
Method Summary | |
java.lang.String |
getApplicationName()
Returns the name of the application associated with this registry. |
java.lang.String |
getAS400Name()
|
java.lang.String |
getIFSLocation()
|
RegistryNode |
getRoot(java.lang.String namespace)
Returns the root of a registry namespace. |
void |
setApplicationName(java.lang.String name)
Sets the name of the application associated with this registry. |
void |
setAS400Name(java.lang.String name)
|
void |
setIFSLocation(java.lang.String name)
|
Methods inherited from class com.ibm.as400.registry.Registry |
getInstance,
getInstance,
getVersion |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static java.lang.String OPNAV_PLATFORM
public static java.lang.String OPNAV_APPLICATION
public static java.lang.String OPNAV_USER
public static java.lang.String OPNAV_SERVERS
Method Detail |
public java.lang.String getApplicationName()
setApplicationName(java.lang.String)
public void setApplicationName(java.lang.String name) throws RegistryException
Application names are scoped to the current process. Once the application name has been set for a process it cannot be changed.
name
- The programmatic name of the application.getApplicationName()
public void setAS400Name(java.lang.String name) throws RegistryException
public java.lang.String getAS400Name()
public void setIFSLocation(java.lang.String name) throws RegistryException
public java.lang.String getIFSLocation()
public RegistryNode getRoot(java.lang.String namespace) throws RegistryException
namespace
- A constant that identifies the desired namespace root.Registry
,
RegistryNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |