org.apache.felix.jmood.utils
Class OSGi2JMXCodec

java.lang.Object
  extended by 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.


Constructor Summary
OSGi2JMXCodec()
           
 
Method Summary
static Byte[] byte2Byte(byte[] bytes)
           
static byte[] Byte2byte(Byte[] bytes)
           
static CompositeData encodeAuthorization(Authorization authorization)
           
static CompositeData encodeBundleEvent(BundleEvent event)
           
static CompositeData encodeException(Throwable throwable)
           
static CompositeData encodeFrameworkEvent(FrameworkEvent event)
           
static CompositeData encodeGroup(Group group)
           
static CompositeData[] encodeLog(Enumeration enumeration)
           
static CompositeData encodeLogEntry(LogEntry entry)
           
static CompositeData encodeRole(Role role)
           
static CompositeData encodeRoleProperties(Dictionary RoleProperties)
           
static CompositeData encodeService(ServiceReference service)
           
static CompositeData encodeServiceEvent(ServiceEvent event)
           
static CompositeData encodeStackTraceElement(StackTraceElement element)
           
static CompositeData encodeUser(User user)
           
static CompositeData encodeUserAdminEvent(UserAdminEvent event)
           
static CompositeData encodeUserCredentials(Dictionary credentials)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGi2JMXCodec

public OSGi2JMXCodec()
Method Detail

encodeBundleEvent

public static CompositeData encodeBundleEvent(BundleEvent event)
                                       throws Exception
Throws:
Exception

encodeServiceEvent

public static CompositeData encodeServiceEvent(ServiceEvent event)
                                        throws Exception
Throws:
Exception

encodeFrameworkEvent

public static CompositeData encodeFrameworkEvent(FrameworkEvent event)
                                          throws Exception
Throws:
Exception

encodeUserAdminEvent

public static CompositeData encodeUserAdminEvent(UserAdminEvent event)
                                          throws Exception
Throws:
Exception

encodeLog

public static CompositeData[] encodeLog(Enumeration enumeration)
                                 throws Exception
Throws:
Exception

encodeUser

public static CompositeData encodeUser(User user)
                                throws Exception
Throws:
Exception

encodeRole

public static CompositeData encodeRole(Role role)
                                throws Exception
Throws:
Exception

encodeGroup

public static CompositeData encodeGroup(Group group)
                                 throws Exception
Throws:
Exception

encodeAuthorization

public static CompositeData encodeAuthorization(Authorization authorization)
                                         throws Exception
Throws:
Exception

encodeLogEntry

public static CompositeData encodeLogEntry(LogEntry entry)
                                    throws Exception
Throws:
Exception

encodeRoleProperties

public static CompositeData encodeRoleProperties(Dictionary RoleProperties)
                                          throws Exception
Throws:
Exception

encodeUserCredentials

public static CompositeData encodeUserCredentials(Dictionary credentials)
                                           throws Exception
Throws:
Exception

encodeService

public static CompositeData encodeService(ServiceReference service)
                                   throws Exception
Throws:
Exception

encodeException

public static CompositeData encodeException(Throwable throwable)
                                     throws Exception
Throws:
Exception

encodeStackTraceElement

public static CompositeData encodeStackTraceElement(StackTraceElement element)
                                             throws Exception
Throws:
Exception

Byte2byte

public static byte[] Byte2byte(Byte[] bytes)

byte2Byte

public static Byte[] byte2Byte(byte[] bytes)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.