java类javax.management.InstanceAlreadyExistsException的实例源码

PogamutMBeanServer.java 文件源码 项目:Pogamut3 阅读 16 收藏 0 点赞 0 评论 0
@Override
public synchronized ObjectInstance createMBean(String className, ObjectName name)
        throws ReflectionException, InstanceAlreadyExistsException,
        MBeanRegistrationException, MBeanException,
        NotCompliantMBeanException {
    throw new UnsupportedOperationException("Not supported by PogamutMBeanServer yet...");
}
PogamutMBeanServer.java 文件源码 项目:Pogamut3 阅读 24 收藏 0 点赞 0 评论 0
@Override
public synchronized ObjectInstance createMBean(String className, ObjectName name,
        Object[] params, String[] signature) throws ReflectionException,
        InstanceAlreadyExistsException, MBeanRegistrationException,
        MBeanException, NotCompliantMBeanException {
    throw new UnsupportedOperationException("Not supported by PogamutMBeanServer yet...");
}
PogamutMBeanServer.java 文件源码 项目:Pogamut3 阅读 25 收藏 0 点赞 0 评论 0
@Override
public synchronized ObjectInstance createMBean(String className, ObjectName name,
        ObjectName loaderName, Object[] params, String[] signature)
        throws ReflectionException, InstanceAlreadyExistsException,
        MBeanRegistrationException, MBeanException,
        NotCompliantMBeanException, InstanceNotFoundException {
    throw new UnsupportedOperationException("Not supported by PogamutMBeanServer yet...");      
}
PogamutMBeanServer.java 文件源码 项目:Pogamut3 阅读 18 收藏 0 点赞 0 评论 0
@Override
public synchronized ObjectInstance registerMBean(Object object, ObjectName name)
        throws InstanceAlreadyExistsException, MBeanRegistrationException,
        NotCompliantMBeanException {        
    ObjectInstance obj = mbs.registerMBean(object, name);
    mBeans.add(new MBean1(name, object));
    unregisteredMBeans.remove(new MBean1(name, object));
    return obj;
}
TransactionModuleJMXRegistrator.java 文件源码 项目:hashsdn-controller 阅读 19 收藏 0 点赞 0 评论 0
public TransactionModuleJMXRegistration registerMBean(final Object object,
        final ObjectName on) throws InstanceAlreadyExistsException {
    if (!transactionName.equals(ObjectNameUtil.getTransactionName(on))) {
        throw new IllegalArgumentException("Transaction name mismatch between expected "
                        + transactionName + " " + "and " + on);
    }
    ObjectNameUtil.checkTypeOneOf(on, ObjectNameUtil.TYPE_MODULE);
    return new TransactionModuleJMXRegistration(
            currentJMXRegistrator.registerMBean(object, on));
}
AbstractAgent3D.java 文件源码 项目:Pogamut3 阅读 17 收藏 0 点赞 0 评论 0
@Override
protected AgentJMXComponents createAgentJMX() {
    return new AgentJMXComponents<IAgent3D>(this) {

        @Override
        protected AgentMBeanAdapter createAgentMBean(ObjectName objectName, MBeanServer mbs) throws MalformedObjectNameException, InstanceAlreadyExistsException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
            return new Agent3DMBeanAdapter(AbstractAgent3D.this, objectName, mbs);
        }
    };
}
MissingInstanceHandlingStrategy.java 文件源码 项目:hashsdn-controller 阅读 19 收藏 0 点赞 0 评论 0
@Override
void handleMissingInstance(Map<String, AttributeConfigElement> configuration, ConfigTransactionClient ta,
        String module, String instance, ServiceRegistryWrapper services) throws ConfigHandlingException {
    try {
        ObjectName on = ta.createModule(module, instance);
        LOG.trace("New instance for {} {} created under name {}", module, instance, on);
    } catch (InstanceAlreadyExistsException e1) {
        throw new ConfigHandlingException(String.format("Unable to create instance for %s : %s.", module, instance),
                DocumentedException.ErrorType.APPLICATION,
                DocumentedException.ErrorTag.OPERATION_FAILED,
                DocumentedException.ErrorSeverity.ERROR);
    }
}
UT2004Bot.java 文件源码 项目:Pogamut3 阅读 19 收藏 0 点赞 0 评论 0
@Override
protected AgentJMXComponents createAgentJMX() {
    return new AgentJMXComponents<IUT2004Bot>(this) {

        @Override
        protected AgentMBeanAdapter createAgentMBean(ObjectName objectName, MBeanServer mbs) throws MalformedObjectNameException, InstanceAlreadyExistsException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
            return new BotJMXMBeanAdapter(UT2004Bot.this, objectName, mbs);
        }
    };
}
OldMBeanServerTest.java 文件源码 项目:jdk8u-jdk 阅读 17 收藏 0 点赞 0 评论 0
public ObjectInstance createMBean(
        String className, ObjectName name, Object[] params, String[] signature)
throws ReflectionException, InstanceAlreadyExistsException,
        MBeanRegistrationException, MBeanException,
        NotCompliantMBeanException {
    try {
        return createMBean(className, name, clrName, params, signature);
    } catch (InstanceNotFoundException ex) {
        throw new RuntimeException(ex);  // can't happen
    }
}
ConfigTransactionControllerImpl.java 文件源码 项目:hashsdn-controller 阅读 18 收藏 0 点赞 0 评论 0
@Override
public void copyExistingModulesAndProcessFactoryDiff(final Collection<ModuleInternalInfo> existingModules,
        final List<ModuleFactory> lastListOfFactories) {
    // copy old configuration to this server
    for (ModuleInternalInfo oldConfigInfo : existingModules) {
        try {
            copyExistingModule(oldConfigInfo);
        } catch (final InstanceAlreadyExistsException e) {
            throw new IllegalStateException("Error while copying " + oldConfigInfo, e);
        }
    }
    processDefaultBeans(lastListOfFactories);
}


问题


面经


文章

微信
公众号

扫码关注公众号