|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mfwk.cib.sdk.util.CIBMBeansFactory
The CIB Mbeans Factory is a utility class offering CIB Objects creation methods used by JESMF module developers who need to create CIB Objects.
Constructor Summary | |
CIBMBeansFactory(com.sun.cacao.Module m)
Constructor |
Method Summary | |
CIBProduct |
createCIBProduct(java.lang.String productName,
java.lang.String theProductVersion,
java.lang.String thePatchId,
long theInstallTime,
java.lang.String theVendorName)
Creates a CIB product. |
void |
createCIBProviderHandler(javax.management.MBeanServerConnection conn)
Create the CIBProviderHandler This implementation uses the default CIBProviderHandler but if the module has its own providerHandler then you should override this method. |
void |
createCIBProviderHandler(MfDiscoveryInfo config)
Create the CIBProviderHandler This implementation uses the default CIBProviderHandler but if the module has its own providerHandler then you should override this method. |
CIBApplication |
newCIBApplication(java.lang.String appliName,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB application. |
CIBExternalResource |
newCIBApplicationExternalResource(java.lang.String extresourceName,
CIBApplication appli,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB external resource related to a CIB application |
CIBResource |
newCIBApplicationResource(java.lang.String resourceName,
CIBApplication appli,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB resource related to a CIB application |
CIBService |
newCIBApplicationService(java.lang.String serviceName,
CIBApplication appli,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB service related to a CIB application |
CIBExternalResource |
newCIBServiceExternalResource(java.lang.String extResourceName,
CIBApplication appli,
CIBService service,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB externalResource related to a CIB service. |
CIBResource |
newCIBServiceResource(java.lang.String resourceName,
CIBApplication appli,
CIBService service,
boolean isStatisticProvider,
boolean isStateProvider,
boolean isEventProvider)
Creates a CIB resource related to a CIB service. |
void |
removeCIBApplication(java.lang.String appliName)
Removes a CIB application and all the CIB Mbeans relative to this application. |
void |
removeCIBApplicationExternalResource(java.lang.String extResourceName,
java.lang.String appliName)
Removes a CIB external resource related to a CIB application |
void |
removeCIBApplicationResource(java.lang.String resourceName,
java.lang.String appliName)
Removes a CIB resource related to a CIB application |
void |
removeCIBApplicationService(java.lang.String serviceName,
java.lang.String appliName)
Removes a CIB service related to a CIB application and all the CIB Mbeans relative to this service. |
void |
removeCIBProduct(java.lang.String productName)
Removes a CIB product and all the CIB Mbeans relative to this product. |
void |
removeCIBServiceExternalResource(java.lang.String extResourceName,
java.lang.String serviceName,
java.lang.String appliName)
Removes a CIB external resource related to a CIB service |
void |
removeCIBServiceResource(java.lang.String resourceName,
java.lang.String serviceName,
java.lang.String appliName)
Removes a CIB resource related to a CIB service |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CIBMBeansFactory(com.sun.cacao.Module m)
m
- Module : the ModuleMethod Detail |
public void createCIBProviderHandler(MfDiscoveryInfo config) throws CIBIOException
config
- MfDiscoveryInfo the discovery message
CIBIOException
public void createCIBProviderHandler(javax.management.MBeanServerConnection conn)
conn
- MBeanServerConnection : the MBeanServerConnectionpublic CIBProduct createCIBProduct(java.lang.String productName, java.lang.String theProductVersion, java.lang.String thePatchId, long theInstallTime, java.lang.String theVendorName) throws javax.management.MBeanRegistrationException
productName
- String : the CIB product name StringtheProductVersion
- String : the CIB product version StringthePatchId
- String : the CIB product patchId StringtheInstallTime
- long : the CIB product install timetheVendorName
- String : the CIB product vendor name String
javax.management.MBeanRegistrationException
public CIBApplication newCIBApplication(java.lang.String appliName, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
appliName
- : the CIB application name StringisStatisticProvider
- : boolean to indicate that this application exposes Statistics.isStateProvider
- : boolean to indicate that this application exposes States.isEventProvider
- : boolean to indicate that this application is sending events.
javax.management.MBeanRegistrationException
public CIBService newCIBApplicationService(java.lang.String serviceName, CIBApplication appli, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
serviceName
- : the CIB service name Stringappli
- : the CIB applicationisStatisticProvider
- : boolean to indicate that this service exposes Statistics.isStateProvider
- : boolean to indicate that this service exposes States.isEventProvider
- : boolean to indicate that this service is sending events.
javax.management.MBeanRegistrationException
public CIBExternalResource newCIBApplicationExternalResource(java.lang.String extresourceName, CIBApplication appli, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
extresourceName
- : the CIB external resource name Stringappli
- : the CIB applicationisStatisticProvider
- : boolean to indicate that this external resource exposes Statistics.isStateProvider
- : boolean to indicate that this external resource exposes States.isEventProvider
- : boolean to indicate that this external resource is sending events.
javax.management.MBeanRegistrationException
public CIBResource newCIBApplicationResource(java.lang.String resourceName, CIBApplication appli, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
resourceName
- : the CIB resource name Stringappli
- : the CIB applicationisStatisticProvider
- : boolean to indicate that this resource exposes Statistics.isStateProvider
- : boolean to indicate that this resource exposes States.isEventProvider
- : boolean to indicate that this resource is sending events.
javax.management.MBeanRegistrationException
public CIBResource newCIBServiceResource(java.lang.String resourceName, CIBApplication appli, CIBService service, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
resourceName
- : the CIB resource name Stringservice
- : the CIB serviceappli
- : the CIB applicationisStatisticProvider
- : boolean to indicate that this resource exposes Statistics.isStateProvider
- : boolean to indicate that this resource exposes States.isEventProvider
- : boolean to indicate that this resource is sending events.
javax.management.MBeanRegistrationException
public CIBExternalResource newCIBServiceExternalResource(java.lang.String extResourceName, CIBApplication appli, CIBService service, boolean isStatisticProvider, boolean isStateProvider, boolean isEventProvider) throws javax.management.MBeanRegistrationException
extResourceName
- : the CIB external resource name Stringservice
- : the CIB serviceappli
- : the CIB applicationisStatisticProvider
- : boolean to indicate that this externalResource exposes Statistics.isStateProvider
- : boolean to indicate that this externalResource exposes States.isEventProvider
- : boolean to indicate that this externalResource is sending events.
javax.management.MBeanRegistrationException
public void removeCIBProduct(java.lang.String productName) throws javax.management.MBeanRegistrationException
productName
-
javax.management.MBeanRegistrationException
public void removeCIBApplication(java.lang.String appliName) throws javax.management.MBeanRegistrationException
appliName
- : the CIB application name String
javax.management.MBeanRegistrationException
public void removeCIBApplicationService(java.lang.String serviceName, java.lang.String appliName) throws javax.management.MBeanRegistrationException
serviceName
- String : the CIB service name StringappliName
- String : the CIB application name String
javax.management.MBeanRegistrationException
public void removeCIBApplicationResource(java.lang.String resourceName, java.lang.String appliName) throws javax.management.MBeanRegistrationException
resourceName
- String : the CIB resource name StringappliName
- String : the CIB application name String
javax.management.MBeanRegistrationException
public void removeCIBApplicationExternalResource(java.lang.String extResourceName, java.lang.String appliName) throws javax.management.MBeanRegistrationException
extResourceName
- String : the CIB external resource name StringappliName
- String : the CIB application name String
javax.management.MBeanRegistrationException
public void removeCIBServiceResource(java.lang.String resourceName, java.lang.String serviceName, java.lang.String appliName) throws javax.management.MBeanRegistrationException
resourceName
- : the CIB resource name StringserviceName
- : the CIB service name String
javax.management.MBeanRegistrationException
public void removeCIBServiceExternalResource(java.lang.String extResourceName, java.lang.String serviceName, java.lang.String appliName) throws javax.management.MBeanRegistrationException
extResourceName
- : the CIB resource name StringserviceName
- : the CIB service name String
javax.management.MBeanRegistrationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |