public final class APIManager extends Object implements APIManagerMBean
| Modifier and Type | Method and Description |
|---|---|
String |
getAPIName()
Gets the name of the API.
|
String |
getAPIVersion()
Gets the version of the API.
|
javax.management.openmbean.CompositeDataSupport |
getBootstrapProperties()
Gets the bootstrap properties.
|
String[] |
getFunctionNames()
Gets the list of the API functions.
|
javax.management.openmbean.CompositeDataSupport |
getRuntimeProperties()
Gets the runtime properties.
|
String |
getStartupTime()
Gets the time at which the API was started.
|
javax.management.openmbean.TabularDataSupport |
getStatistics()
Gets the statistics of the functions.
|
String |
getXINSVersion()
Gets the version of XINS which is running this API.
|
void |
noOp()
Executes the _NoOp meta function.
|
void |
reloadProperties()
Reloads the runtime properties if the file has changed.
|
public String getAPIVersion() throws IOException
getAPIVersion in interface APIManagerMBeanIOException - if the connection to the MBean fails.public String getXINSVersion() throws IOException
getXINSVersion in interface APIManagerMBeanIOException - if the connection to the MBean fails.public String getAPIName() throws IOException
getAPIName in interface APIManagerMBeanIOException - if the connection to the MBean fails.public javax.management.openmbean.CompositeDataSupport getBootstrapProperties()
throws IOException
getBootstrapProperties in interface APIManagerMBeanIOException - if the connection to the MBean fails.public javax.management.openmbean.CompositeDataSupport getRuntimeProperties()
throws IOException
getRuntimeProperties in interface APIManagerMBeanIOException - if the connection to the MBean fails.public String getStartupTime() throws IOException
getStartupTime in interface APIManagerMBeanIOException - if the connection to the MBean fails.public String[] getFunctionNames() throws IOException
getFunctionNames in interface APIManagerMBeanIOException - if the connection to the MBean fails.public javax.management.openmbean.TabularDataSupport getStatistics()
throws IOException
getStatistics in interface APIManagerMBeanIOException - if the connection to the MBean fails.public void noOp()
throws IOException,
NoSuchFunctionException,
AccessDeniedException
noOp in interface APIManagerMBeanIOException - if the connection to the MBean fails.NoSuchFunctionException - if the _noOp meta function is not found.AccessDeniedException - if the JMX client is not in the ACLs to execute the _noOp meta function.public void reloadProperties()
throws IOException,
NoSuchFunctionException,
AccessDeniedException
reloadProperties in interface APIManagerMBeanIOException - if the connection to the MBean fails.NoSuchFunctionException - if the _ReloadProperties meta function is not found.AccessDeniedException - if the JMX client is not in the ACLs to execute the _ReloadProperties meta function.See http://www.xins.org/.