|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.si.mgmt.ObjectNameFactory
Factory for creating custom ObjectNames for Regular and Proxied MBeans. ObjectNames are passed in and copied, adding and/or replacing additional attributes. The static initialize method should be called before getting the singleton instance for the first time in order to pass in configuration information
Constructor Summary | |
---|---|
protected |
ObjectNameFactory(java.lang.String deviceId,
java.lang.String systemId,
java.lang.String storeId)
|
Method Summary | |
---|---|
javax.management.ObjectName |
createObjectName(javax.management.ObjectName objName,
java.lang.String component,
java.lang.String devMajor,
java.lang.String devMinor)
Deprecated. The Id key needs to be supplied, use createObjectName( ObjectName, String, String, String ) instead |
javax.management.ObjectName |
createObjectName(javax.management.ObjectName objName,
java.lang.String id,
java.lang.String component,
java.lang.String devMajor,
java.lang.String devMinor)
Creates a new ObjectName from an existing ObjectName that
conforms to the SI Object Naming conventions, adding the supplied system information
in addition to other required properties. |
javax.management.ObjectName |
createObjectName(java.lang.String domain,
java.lang.String id,
java.lang.String component,
java.lang.String devMajor,
java.lang.String devMinor)
Creates a new ObjectName from the supplied information that
conforms to the SI Object Naming conventions, having the supplied system information
in addition to other required properties. |
javax.management.ObjectName |
createProxyObjectName(javax.management.ObjectName objName,
com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo)
Create a modified ObjectName for a proxy of the supplied ObjectName |
static com.ibm.retail.si.mgmt.ObjectNameFactory |
getInstance()
|
protected static void |
initialize(java.lang.String deviceId,
java.lang.String systemId,
java.lang.String storeId)
Initializes the singleton instance with the supplied attributes. |
javax.management.ObjectName |
reverseObjectName(javax.management.ObjectName objName)
For usage within a general agent, this method, removes all device and component information added in createObjectName() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ObjectNameFactory(java.lang.String deviceId, java.lang.String systemId, java.lang.String storeId)
deviceId
- Device ID added only to regular ObjectNamessystemId
- System ID added only to regular ObjectNamesstoreId
- Store ID to add to proxied MBeans, should be null for GA'sMethod Detail |
public javax.management.ObjectName createProxyObjectName(javax.management.ObjectName objName, com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo) throws javax.management.MalformedObjectNameException
objName
- Source ObjectNamedevInfo
- MgmtDeviceInfo matching the source device
javax.management.MalformedObjectNameException
- Error creating new ObjectNamepublic javax.management.ObjectName createObjectName(javax.management.ObjectName objName, java.lang.String component, java.lang.String devMajor, java.lang.String devMinor) throws javax.management.MalformedObjectNameException
objName
- Source ObjectName instancecomponent
- Component name the MBean matchesdevMajor
- Major version of the component being representeddevMinor
- Minor version of the component being represented
javax.management.MalformedObjectNameException
- Invalid parameter values suppliedpublic javax.management.ObjectName createObjectName(javax.management.ObjectName objName, java.lang.String id, java.lang.String component, java.lang.String devMajor, java.lang.String devMinor) throws javax.management.MalformedObjectNameException
ObjectName
from an existing ObjectName
that
conforms to the SI Object Naming conventions, adding the supplied system information
in addition to other required properties.
objName
- Source ObjectName
instanceid
- Type/Identifier for the MBean, cannot be nullcomponent
- Component name the MBean matches, can be nulldevMajor
- Major version of the component being represented, can be nulldevMinor
- Minor version of the component being represented, can be null
ObjectName
based on the supplied instance with additional information
javax.management.MalformedObjectNameException
- Invalid parameter values suppliedpublic javax.management.ObjectName createObjectName(java.lang.String domain, java.lang.String id, java.lang.String component, java.lang.String devMajor, java.lang.String devMinor) throws javax.management.MalformedObjectNameException
ObjectName
from the supplied information that
conforms to the SI Object Naming conventions, having the supplied system information
in addition to other required properties.
domain
- Domain portion of the new ObjectName
id
- Type/Identifier for the MBean, cannot be nullcomponent
- Component name the MBean matches, can be nulldevMajor
- Major version of the component being represented, can be nulldevMinor
- Minor version of the component being represented, can be null
javax.management.MalformedObjectNameException
- Invalid parameter values suppliedpublic javax.management.ObjectName reverseObjectName(javax.management.ObjectName objName) throws javax.management.MalformedObjectNameException
objName
- Source ObjectName
javax.management.MalformedObjectNameException
- Error creating new ObjectNameprotected static void initialize(java.lang.String deviceId, java.lang.String systemId, java.lang.String storeId)
deviceId
- Device ID added only to regular ObjectNamessystemId
- System ID added only to regular ObjectNamesstoreId
- Store ID to add to proxied MBeans, should be null for GA'spublic static com.ibm.retail.si.mgmt.ObjectNameFactory getInstance() throws MgmtException
MgmtException
- Singleton instance has not been initialized
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |