com.ibm.di.api.jmx.mbeans
Class TDIProperties

java.lang.Object
  extended by com.ibm.di.api.jmx.mbeans.BaseAdmin
      extended by com.ibm.di.api.jmx.mbeans.TDIProperties
All Implemented Interfaces:
BaseAdminMBean, BaseMBean, TDIPropertiesMBean

public class TDIProperties
extends BaseAdmin
implements TDIPropertiesMBean


Field Summary
static String MBEAN_TYPE
           
 
Constructor Summary
TDIProperties(TDIProperties aLocalTDIProperties, String aId)
           
 
Method Summary
 void addPropertyStore(PropertyStoreConfig config)
           
 void commit()
           
static javax.management.ObjectName genObjectName(String aUniqueCode)
           
 TDIPropertyStore getDefaultStore()
           
 String getId()
          Reads attribute "Id".
 TDIPropertyStore getPasswordStore()
           
 Object getProperty(String key)
           
 Object getProperty(String propertyStoreName, String key)
           
 TDIPropertyStore getPropertyStore(String name)
           
 String[] getPropertyStoreKeys(String propertyStoreName)
           
 List getPropertyStoreNames()
           
 String getType()
          Reads attribute "Type".
 void insertPropertyStore(PropertyStoreConfig config, int atIndex)
           
 void removeProperty(String propertyStoreName, String key)
           
 void removePropertyStore(String propertyStoreName)
           
 void setDefaultStore(TDIPropertyStore defaultStore)
           
 void setPasswordStore(TDIPropertyStore passwordStore)
           
 TDIPropertyStore setProperty(String key, Object value)
           
 TDIPropertyStore setProperty(String key, Object value, boolean protect)
           
 void setProperty(String propertyStoreName, String key, Object value)
           
 String trimKey(String key)
           
 
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

MBEAN_TYPE

public static final String MBEAN_TYPE
See Also:
Constant Field Values
Constructor Detail

TDIProperties

public TDIProperties(TDIProperties aLocalTDIProperties,
                     String aId)
              throws DIException
Throws:
DIException
Method Detail

getType

public String getType()
Description copied from interface: BaseMBean
Reads attribute "Type".

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".

Specified by:
getType in interface BaseMBean
Returns:
the type of this MBean.

getId

public String getId()
Description copied from interface: BaseMBean
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.

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".

Specified by:
getId in interface BaseMBean
Returns:
the Id of this MBean.

commit

public void commit()
            throws RemoteException,
                   Exception
Specified by:
commit in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

getProperty

public Object getProperty(String key)
                   throws RemoteException,
                          Exception
Specified by:
getProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

setProperty

public TDIPropertyStore setProperty(String key,
                                    Object value)
                             throws RemoteException,
                                    Exception
Specified by:
setProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

setProperty

public TDIPropertyStore setProperty(String key,
                                    Object value,
                                    boolean protect)
                             throws RemoteException,
                                    Exception
Specified by:
setProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

removeProperty

public void removeProperty(String propertyStoreName,
                           String key)
                    throws RemoteException,
                           Exception
Specified by:
removeProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

getProperty

public Object getProperty(String propertyStoreName,
                          String key)
                   throws RemoteException,
                          Exception
Specified by:
getProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

setProperty

public void setProperty(String propertyStoreName,
                        String key,
                        Object value)
                 throws RemoteException,
                        Exception
Specified by:
setProperty in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

getPropertyStoreKeys

public String[] getPropertyStoreKeys(String propertyStoreName)
                              throws RemoteException,
                                     Exception
Specified by:
getPropertyStoreKeys in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

addPropertyStore

public void addPropertyStore(PropertyStoreConfig config)
                      throws RemoteException,
                             Exception
Specified by:
addPropertyStore in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

insertPropertyStore

public void insertPropertyStore(PropertyStoreConfig config,
                                int atIndex)
                         throws RemoteException,
                                Exception
Specified by:
insertPropertyStore in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

removePropertyStore

public void removePropertyStore(String propertyStoreName)
                         throws RemoteException,
                                Exception
Specified by:
removePropertyStore in interface TDIPropertiesMBean
Throws:
RemoteException
Exception

getPropertyStoreNames

public List getPropertyStoreNames()
                           throws Exception,
                                  RemoteException
Specified by:
getPropertyStoreNames in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

getDefaultStore

public TDIPropertyStore getDefaultStore()
                                 throws Exception,
                                        RemoteException
Specified by:
getDefaultStore in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

setDefaultStore

public void setDefaultStore(TDIPropertyStore defaultStore)
                     throws Exception,
                            RemoteException
Specified by:
setDefaultStore in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

getPasswordStore

public TDIPropertyStore getPasswordStore()
                                  throws Exception,
                                         RemoteException
Specified by:
getPasswordStore in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

setPasswordStore

public void setPasswordStore(TDIPropertyStore passwordStore)
                      throws Exception,
                             RemoteException
Specified by:
setPasswordStore in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

getPropertyStore

public TDIPropertyStore getPropertyStore(String name)
                                  throws Exception,
                                         RemoteException
Specified by:
getPropertyStore in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

trimKey

public String trimKey(String key)
               throws Exception,
                      RemoteException
Specified by:
trimKey in interface TDIPropertiesMBean
Throws:
Exception
RemoteException

genObjectName

public static javax.management.ObjectName genObjectName(String aUniqueCode)
                                                 throws DIException
Throws:
DIException