|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.jmx.mbeans.BaseAdmin
com.ibm.di.api.jmx.mbeans.TDIProperties
public class TDIProperties
Wrapper API to expose the functionality available from com.ibm.di.config.interfaces.TDIProperties.
Field Summary | |
---|---|
static java.lang.String |
MBEAN_TYPE
Type of the MBean. |
Constructor Summary | |
---|---|
TDIProperties(TDIProperties aLocalTDIProperties,
java.lang.String aId)
Class constructor. |
Method Summary | |
---|---|
void |
addPropertyStore(PropertyStoreConfig config)
Adds a property store to the end of the list of TDI-P's list of property stores. |
void |
commit()
Does a commit on all property stores. |
static javax.management.ObjectName |
genObjectName(java.lang.String aUniqueCode)
Generates object name for specified TDI-P. |
TDIPropertyStore |
getDefaultStore()
Gets the default property store. |
java.lang.String |
getId()
Reads attribute "Id". |
TDIPropertyStore |
getPasswordStore()
Returns the password store. |
java.lang.Object |
getProperty(java.lang.String key)
Gets the property value from the property store chosen by TDIProperties. |
java.lang.Object |
getProperty(java.lang.String propertyStoreName,
java.lang.String key)
Returns the property value from the named property store. |
TDIPropertyStore |
getPropertyStore(java.lang.String name)
Returns the named property store. |
java.lang.String[] |
getPropertyStoreKeys(java.lang.String propertyStoreName)
Returns an array containing all the property keys in the named property store. |
java.util.List |
getPropertyStoreNames()
Returns a list of property store names in use by TDI-P. |
java.lang.String |
getType()
Reads attribute "Type". |
void |
insertPropertyStore(PropertyStoreConfig config,
int atIndex)
Inserts a connector interface at the given index. |
void |
removeProperty(java.lang.String propertyStoreName,
java.lang.String key)
Removes a property in the named property store. |
void |
removePropertyStore(java.lang.String propertyStoreName)
Removes a property store from TDI-P. |
void |
setDefaultStore(TDIPropertyStore defaultStore)
Sets the default property store. |
void |
setPasswordStore(TDIPropertyStore passwordStore)
Sets the password store. |
TDIPropertyStore |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the property in the property store chosen by TDIProperties. |
TDIPropertyStore |
setProperty(java.lang.String key,
java.lang.Object value,
boolean protect)
Sets the property in the property store chosen by TDIProperties. |
void |
setProperty(java.lang.String propertyStoreName,
java.lang.String key,
java.lang.Object value)
Sets the property in the named property store. |
java.lang.String |
trimKey(java.lang.String key)
Trims the key from a given string. |
Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin |
---|
getCurrentUserId, getKeyPropertyList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MBEAN_TYPE
Constructor Detail |
---|
public TDIProperties(TDIProperties aLocalTDIProperties, java.lang.String aId) throws DIException
aLocalTDIProperties
- TDIProperties
instance.aId
- ID.
DIException
Method Detail |
---|
public java.lang.String getType()
getType()
and getId()
are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getType
in interface BaseMBean
public java.lang.String getId()
getType()
and getId()
are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getId
in interface BaseMBean
public void commit() throws java.rmi.RemoteException, java.lang.Exception
commit
in interface TDIPropertiesMBean
java.rmi.RemoteException
java.lang.Exception
- if Runtime or Security exception occurspublic java.lang.Object getProperty(java.lang.String key) throws java.rmi.RemoteException, java.lang.Exception
getProperty
in interface TDIPropertiesMBean
key
- The property name
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic TDIPropertyStore setProperty(java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException, java.lang.Exception
setProperty
in interface TDIPropertiesMBean
key
- The property namevalue
- The new property value
TDIPropertyStore
to which the key/value pair
was written
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic TDIPropertyStore setProperty(java.lang.String key, java.lang.Object value, boolean protect) throws java.rmi.RemoteException, java.lang.Exception
setProperty
in interface TDIPropertiesMBean
key
- The property namevalue
- The new property valueprotect
- True if value should be protected (driver dependent)
TDIPropertyStore
to which the key/value pair
was written
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic void removeProperty(java.lang.String propertyStoreName, java.lang.String key) throws java.rmi.RemoteException, java.lang.Exception
removeProperty
in interface TDIPropertiesMBean
propertyStoreName
- The name of the property storekey
- The property to delete
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic java.lang.Object getProperty(java.lang.String propertyStoreName, java.lang.String key) throws java.rmi.RemoteException, java.lang.Exception
getProperty
in interface TDIPropertiesMBean
propertyStoreName
- The name of the property storekey
- The property value
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic void setProperty(java.lang.String propertyStoreName, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException, java.lang.Exception
setProperty
in interface TDIPropertiesMBean
propertyStoreName
- The name of the property storekey
- The property namevalue
- The new property value
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic java.lang.String[] getPropertyStoreKeys(java.lang.String propertyStoreName) throws java.rmi.RemoteException, java.lang.Exception
getPropertyStoreKeys
in interface TDIPropertiesMBean
propertyStoreName
- The name of the property store
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic void addPropertyStore(PropertyStoreConfig config) throws java.rmi.RemoteException, java.lang.Exception
addPropertyStore
in interface TDIPropertiesMBean
config
- The property store configuration
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic void insertPropertyStore(PropertyStoreConfig config, int atIndex) throws java.rmi.RemoteException, java.lang.Exception
insertPropertyStore
in interface TDIPropertiesMBean
config
- The property store configurationatIndex
- The position where the new connector is placed (-1 = END, 0 =
First)
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic void removePropertyStore(java.lang.String propertyStoreName) throws java.rmi.RemoteException, java.lang.Exception
removePropertyStore
in interface TDIPropertiesMBean
propertyStoreName
- The name of the property store
java.rmi.RemoteException
- if a communication-related exception occurs.
java.lang.Exception
- if Runtime or Security exception occurspublic java.util.List getPropertyStoreNames() throws java.lang.Exception, java.rmi.RemoteException
getPropertyStoreNames
in interface TDIPropertiesMBean
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public TDIPropertyStore getDefaultStore() throws java.lang.Exception, java.rmi.RemoteException
getDefaultStore
in interface TDIPropertiesMBean
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public void setDefaultStore(TDIPropertyStore defaultStore) throws java.lang.Exception, java.rmi.RemoteException
setDefaultStore
in interface TDIPropertiesMBean
defaultStore
- the new default property store
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public TDIPropertyStore getPasswordStore() throws java.lang.Exception, java.rmi.RemoteException
getPasswordStore
in interface TDIPropertiesMBean
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public void setPasswordStore(TDIPropertyStore passwordStore) throws java.lang.Exception, java.rmi.RemoteException
setPasswordStore
in interface TDIPropertiesMBean
passwordStore
- the new password store
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public TDIPropertyStore getPropertyStore(java.lang.String name) throws java.lang.Exception, java.rmi.RemoteException
getPropertyStore
in interface TDIPropertiesMBean
name
- the name of the property store
TDIPropertyStore
with specified name
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public java.lang.String trimKey(java.lang.String key) throws java.lang.Exception, java.rmi.RemoteException
trimKey("greeting:Hello, world!")
will return
the following string: "Hello, world!"
.
trimKey
in interface TDIPropertiesMBean
key
- a string representing key:value pair
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public static javax.management.ObjectName genObjectName(java.lang.String aUniqueCode) throws DIException
aUniqueCode
- unique code used for building the TDI-P MBean id.
DIException
- if error occurs while creating TDI-P JMX object name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |