|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This services exposes methods that are helpful in managing aspects of the Carbon core services of Configuration, Components, and DeploymentProperties. Copyright 2002 Sapient
| Method Summary | |
int |
getActiveThreadCount()
Retrieves the number of active threads in the JVM. |
int |
getActiveThreadGroupCount()
Retrieves the number of active thread groups in the JVM. |
int |
getAvailableProcessors()
Retrieves the number of processes available to this JVM. |
String |
getDeploymentProperties()
Returns a table of deployment properties and their values. |
String |
getDeploymentProperty(String propertyName)
Returns the value of the specified deployment property. |
Map |
getDeploymentPropertyMap()
Retrieve the map of exposed deployment properties |
long |
getFreeMemory()
Retrieves the free memory available to the JVM |
long |
getMaximumMemory()
Retrieves the amount of memory the JVM may attempt to use. |
long |
getTotalMemory()
Retrieves the amount of memory researved by the JVM. |
void |
loadComponent(String componentName)
Loads the component specified by componentName. |
void |
refreshAllComponentConfigurations()
Refreshes all the components loaded in the system. |
void |
refreshAllConfigurations()
Refreshes all configurations loaded in the system. |
void |
refreshConfiguration(String configurationPath)
Refreshes the configuration identified by configurationPath |
String |
viewConfigurationTree()
Returns the entire configuration hierachy in a tree view |
String |
viewConfigurationXML(String configurationPath)
Returns the configuration named by configurationPath as an XML String. |
| Method Detail |
public String viewConfigurationXML(String configurationPath)
throws ConfigurationNotFoundException
configurationPath - name of the configuration to view
ConfigurationNotFoundException - if configurationPath is not foundpublic String viewConfigurationTree()
public void refreshAllConfigurations()
public void refreshConfiguration(String configurationPath)
throws ConfigurationNotFoundException
configurationPath - name of the configuration to refresh
ConfigurationNotFoundException - if configurationPath is not foundpublic void refreshAllComponentConfigurations()
public void loadComponent(String componentName)
throws ComponentNotFoundException
componentName - name of the component to load
ComponentNotFoundException - if the component is not foundpublic String getDeploymentProperties()
public Map getDeploymentPropertyMap()
public String getDeploymentProperty(String propertyName)
propertyName - name of the property to return
public long getFreeMemory()
Runtime.freeMemory()public long getTotalMemory()
Runtime.totalMemory()public long getMaximumMemory()
Runtime.maxMemory()public int getAvailableProcessors()
Runtime.availableProcessors()public int getActiveThreadCount()
Thread.activeCount()public int getActiveThreadGroupCount()
ThreadGroup.activeGroupCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||