org.apache.felix.jmood.utils
Class OSGi2JMXCodec
java.lang.Object
org.apache.felix.jmood.utils.OSGi2JMXCodec
public class OSGi2JMXCodec
- extends Object
This class's task is to be in charge of all needed type conversions
inside the management agent. This involves translating osgi-defined types
to jmx's open types. It implements methods for obtaining open instances.
This class implements the singleton pattern.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGi2JMXCodec
public OSGi2JMXCodec()
encodeBundleEvent
public static javax.management.openmbean.CompositeData encodeBundleEvent(BundleEvent event)
throws Exception
- Throws:
Exception
encodeServiceEvent
public static javax.management.openmbean.CompositeData encodeServiceEvent(ServiceEvent event)
throws Exception
- Throws:
Exception
encodeFrameworkEvent
public static javax.management.openmbean.CompositeData encodeFrameworkEvent(FrameworkEvent event)
throws Exception
- Throws:
Exception
encodeUserAdminEvent
public static javax.management.openmbean.CompositeData encodeUserAdminEvent(UserAdminEvent event)
throws Exception
- Throws:
Exception
encodeLog
public static javax.management.openmbean.CompositeData[] encodeLog(Enumeration enumeration)
throws Exception
- Throws:
Exception
encodeUser
public static javax.management.openmbean.CompositeData encodeUser(User user)
throws Exception
- Throws:
Exception
encodeRole
public static javax.management.openmbean.CompositeData encodeRole(Role role)
throws Exception
- Throws:
Exception
encodeGroup
public static javax.management.openmbean.CompositeData encodeGroup(Group group)
throws Exception
- Throws:
Exception
encodeAuthorization
public static javax.management.openmbean.CompositeData encodeAuthorization(Authorization authorization)
throws Exception
- Throws:
Exception
encodeLogEntry
public static javax.management.openmbean.CompositeData encodeLogEntry(LogEntry entry)
throws Exception
- Throws:
Exception
encodeRoleProperties
public static javax.management.openmbean.CompositeData encodeRoleProperties(Dictionary RoleProperties)
throws Exception
- Throws:
Exception
encodeUserCredentials
public static javax.management.openmbean.CompositeData encodeUserCredentials(Dictionary credentials)
throws Exception
- Throws:
Exception
encodeService
public static javax.management.openmbean.CompositeData encodeService(ServiceReference service)
throws Exception
- Throws:
Exception
encodeException
public static javax.management.openmbean.CompositeData encodeException(Throwable throwable)
throws Exception
- Throws:
Exception
encodeStackTraceElement
public static javax.management.openmbean.CompositeData encodeStackTraceElement(StackTraceElement element)
throws Exception
- Throws:
Exception
Byte2byte
public static byte[] Byte2byte(Byte[] bytes)
byte2Byte
public static Byte[] byte2Byte(byte[] bytes)
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.