public class UserMSF extends Object implements org.osgi.service.cm.ManagedServiceFactory
Default values:
<configadmin> <factory-configuration pid="org.objectweb.joram.client.osgi.UserMSF"> <property name="adminWrapper">ra1</property> <property name="serverId">0</property> <property name="name">anonymous</property> <property name="password">anonymous</property> <!-- properties --> </factory-configuration> </configadmin>
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_HOST |
static String |
ADMIN_PORT |
static String |
ADMIN_USERNAME |
static String |
ADMIN_WRAPPER |
private org.osgi.framework.BundleContext |
bundleContext |
static String |
DMQ |
static String |
DMQ_SID |
static String |
IDENTITYCLASS |
private JndiHelper |
jndiHelper |
static String |
JNDINAME |
private HashMap<String,String> |
jndiNames |
static org.objectweb.util.monolog.api.Logger |
logmon |
static String |
NAME |
static String |
NB_MAXMSG |
static String |
PASSWORD |
private org.osgi.framework.ServiceRegistration |
registration |
static String |
SERVERID |
static String |
SUBNAME |
static String |
THRESHOLD |
private HashMap<String,User> |
users |
Constructor and Description |
---|
UserMSF(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
deleted(String pid) |
void |
doStop() |
void |
doUpdated(String pid,
Dictionary properties) |
String |
getName() |
private boolean |
isSet(String value) |
private void |
setUserDMQ(AdminItf wrapper,
User user,
String dmq,
int dmqSid) |
void |
updated(String pid,
Dictionary properties) |
public static final org.objectweb.util.monolog.api.Logger logmon
public static final String ADMIN_WRAPPER
public static final String ADMIN_HOST
public static final String ADMIN_PORT
public static final String ADMIN_USERNAME
public static final String NAME
public static final String PASSWORD
public static final String SERVERID
public static final String IDENTITYCLASS
public static final String SUBNAME
public static final String THRESHOLD
public static final String NB_MAXMSG
public static final String JNDINAME
public static final String DMQ
public static final String DMQ_SID
private org.osgi.framework.BundleContext bundleContext
private org.osgi.framework.ServiceRegistration registration
private JndiHelper jndiHelper
private final boolean isSet(String value)
private void setUserDMQ(AdminItf wrapper, User user, String dmq, int dmqSid) throws ConnectException, AdminException
ConnectException
AdminException
public void doStop()
public void doUpdated(String pid, Dictionary properties)
public String getName()
getName
in interface org.osgi.service.cm.ManagedServiceFactory
public void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedServiceFactory
org.osgi.service.cm.ConfigurationException
public void deleted(String pid)
deleted
in interface org.osgi.service.cm.ManagedServiceFactory
Copyright © 2020 ScalAgent D.T.. All rights reserved.