|
|||||||||||
| 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 String |
MBEAN_TYPE
Type of the MBean. |
| Constructor Summary | |
|---|---|
TDIProperties(TDIProperties aLocalTDIProperties,
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 ObjectName |
genObjectName(String aUniqueCode)
Generates object name for specified TDI-P. |
TDIPropertyStore |
getDefaultStore()
Gets the default property store. |
String |
getId()
Reads attribute "Id". |
TDIPropertyStore |
getPasswordStore()
Returns the password store. |
Object |
getProperty(String key)
Gets the property value from the property store chosen by TDIProperties. |
Object |
getProperty(String propertyStoreName,
String key)
Returns the property value from the named property store. |
TDIPropertyStore |
getPropertyStore(String name)
Returns the named property store. |
String[] |
getPropertyStoreKeys(String propertyStoreName)
Returns an array containing all the property keys in the named property store. |
List |
getPropertyStoreNames()
Returns a list of property store names in use by TDI-P. |
String |
getType()
Reads attribute "Type". |
void |
insertPropertyStore(PropertyStoreConfig config,
int atIndex)
Inserts a connector interface at the given index. |
void |
removeProperty(String propertyStoreName,
String key)
Removes a property in the named property store. |
void |
removePropertyStore(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(String key,
Object value)
Sets the property in the property store chosen by TDIProperties. |
TDIPropertyStore |
setProperty(String key,
Object value,
boolean protect)
Sets the property in the property store chosen by TDIProperties. |
void |
setProperty(String propertyStoreName,
String key,
Object value)
Sets the property in the named property store. |
String |
trimKey(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 String MBEAN_TYPE
| Constructor Detail |
|---|
public TDIProperties(TDIProperties aLocalTDIProperties,
String aId)
throws DIException
aLocalTDIProperties - TDIProperties instance.aId - ID.
DIException| Method Detail |
|---|
public 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 BaseMBeanpublic 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 RemoteException,
Exception
commit in interface TDIPropertiesMBeanRemoteException
Exception - if Runtime or Security exception occurs
public Object getProperty(String key)
throws RemoteException,
Exception
getProperty in interface TDIPropertiesMBeankey - The property name
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public TDIPropertyStore setProperty(String key,
Object value)
throws RemoteException,
Exception
setProperty in interface TDIPropertiesMBeankey - The property namevalue - The new property value
TDIPropertyStore to which the key/value pair
was written
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public TDIPropertyStore setProperty(String key,
Object value,
boolean protect)
throws RemoteException,
Exception
setProperty in interface TDIPropertiesMBeankey - The property namevalue - The new property valueprotect - True if value should be protected (driver dependent)
TDIPropertyStore to which the key/value pair
was written
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public void removeProperty(String propertyStoreName,
String key)
throws RemoteException,
Exception
removeProperty in interface TDIPropertiesMBeanpropertyStoreName - The name of the property storekey - The property to delete
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public Object getProperty(String propertyStoreName,
String key)
throws RemoteException,
Exception
getProperty in interface TDIPropertiesMBeanpropertyStoreName - The name of the property storekey - The property value
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public void setProperty(String propertyStoreName,
String key,
Object value)
throws RemoteException,
Exception
setProperty in interface TDIPropertiesMBeanpropertyStoreName - The name of the property storekey - The property namevalue - The new property value
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public String[] getPropertyStoreKeys(String propertyStoreName)
throws RemoteException,
Exception
getPropertyStoreKeys in interface TDIPropertiesMBeanpropertyStoreName - The name of the property store
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public void addPropertyStore(PropertyStoreConfig config)
throws RemoteException,
Exception
addPropertyStore in interface TDIPropertiesMBeanconfig - The property store configuration
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public void insertPropertyStore(PropertyStoreConfig config,
int atIndex)
throws RemoteException,
Exception
insertPropertyStore in interface TDIPropertiesMBeanconfig - The property store configurationatIndex - The position where the new connector is placed (-1 = END, 0 =
First)
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public void removePropertyStore(String propertyStoreName)
throws RemoteException,
Exception
removePropertyStore in interface TDIPropertiesMBeanpropertyStoreName - The name of the property store
RemoteException - if a communication-related exception occurs.
Exception - if Runtime or Security exception occurs
public List getPropertyStoreNames()
throws Exception,
RemoteException
getPropertyStoreNames in interface TDIPropertiesMBeanException - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public TDIPropertyStore getDefaultStore()
throws Exception,
RemoteException
getDefaultStore in interface TDIPropertiesMBeanException - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public void setDefaultStore(TDIPropertyStore defaultStore)
throws Exception,
RemoteException
setDefaultStore in interface TDIPropertiesMBeandefaultStore - the new default property store
Exception - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public TDIPropertyStore getPasswordStore()
throws Exception,
RemoteException
getPasswordStore in interface TDIPropertiesMBeanException - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public void setPasswordStore(TDIPropertyStore passwordStore)
throws Exception,
RemoteException
setPasswordStore in interface TDIPropertiesMBeanpasswordStore - the new password store
Exception - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public TDIPropertyStore getPropertyStore(String name)
throws Exception,
RemoteException
getPropertyStore in interface TDIPropertiesMBeanname - the name of the property store
TDIPropertyStore with specified name
Exception - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public String trimKey(String key)
throws Exception,
RemoteException
trimKey("greeting:Hello, world!") will return
the following string: "Hello, world!".
trimKey in interface TDIPropertiesMBeankey - a string representing key:value pair
Exception - if Runtime or Security exception occurs
RemoteException - if a communication-related exception occurs.
public static ObjectName genObjectName(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 | ||||||||||