Method Summary |
|
public static void | checkParamsCount(String operationName, Object[] params, int count) |
public static int | convertImpact(int impact) |
public static OpenMBeanAttributeInfo | convertToOpenMBeanAttribute(MBeanAttributeInfo in) Parameters: in - AttributeInfo to convert. |
public static OpenMBeanAttributeInfo | convertToOpenMBeanAttribute(MBeanAttributeInfo in, String prefix) Parameters: in - AttributeInfo to convert. Parameters: prefix - Prefix to add to names of new attributes. |
public static OpenMBeanOperationInfo | convertToOpenMBeanOperation(MBeanOperationInfo in) Parameters: in - MBeanOperation to convert. |
public static OpenMBeanOperationInfo | convertToOpenMBeanOperation(MBeanOperationInfo in, String prefix, OpenType returnType) Parameters: in - MBeanOperation to convert. Parameters: prefix - A prefix to add to the name of new operation. Parameters: returnType - Return type to use in new operation. |
public static OpenMBeanParameterInfo | convertToOpenMBeanOperationInfo(MBeanParameterInfo in) Parameters: in - MBeanParameterInfo to convert to an OpenMBeanParameterInfo. |
public static CompositeType | createCompositeType(Map m, String compositeTypeName, String compositeTypeDescription) Parameters: m - A map to make a CompositeType of (Assumption is that order doesnot matter. |
public static OpenMBeanAttributeInfo | createOpenMBeanAttributeInfo(OpenType type, MBeanAttributeInfo in, String prefix) Parameters: type - Type of new OpenMBeanAttributeInfo. Parameters: in - The MBeanAttributeInfo we're converting. Parameters: prefix - Prefix to add to name of new Attribute (If null, nothingis added). |
public static InetSocketAddress | extractAddress(ObjectName name) |
public static String | getLogRegistrationMsg(String mbeanName, MBeanServer mbeanServer, boolean registrationDone) Return a string suitable for logging on registration.
Parameters: mbeanName - Mbean that got registered. Parameters: mbeanServer - Server we were registered to. Parameters: registrationDone - Whether we registered successfully or not. |
public static String | getLogUnregistrationMsg(String mbeanName, MBeanServer mbeanServer) |
public static OpenType | getOpenType(String classString) Parameters: classString - Java class name. |
public static OpenType | getOpenType(String classString, OpenType defaultType) Parameters: classString - Java class name. Parameters: defaultType - If no equivalent found, use passed defaultType. |
public static String | getServerDetail(MBeanServer server) |
public static String | getUid(ObjectName on) Returns the UID portion of the name key property of
an object name representing a "CrawlService.Job" bean.
It is assumed that the name will have the format
{crawl name}-{uid}.
Parameters: on - A CrawlServer.Job object name. |
public static boolean | isOpenType(Class c) |
public static boolean | isOpenType(String classname) |