org.fabric3.api.annotation.management.Management类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中org.fabric3.api.annotation.management.Management类的一些代码示例,展示了Management类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Management类的具体详情如下:
包路径:org.fabric3.api.annotation.management.Management
类名称:Management

Management介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.fabric3.standalone/fabric3-standalone-admin

/**
 * @version $Rev: 9763 $ $Date: 2011-01-03 00:48:06 +0000 (Mon, 03 Jan 2011) $
 */
@Management(name = "ApplicationDomain", group = "deployment", description = "Manages the application domain")
public class DistributedDomainMBean extends AbstractDomainMBean {

  public DistributedDomainMBean(@Reference(name = "domain") Domain domain,
                 @Reference MetaDataStore store,
                 @Reference(name = "lcm") LogicalComponentManager lcm,
                 @Reference HostInfo info,
                 @Monitor DomainMBeanMonitor monitor) {
    super(domain, store, lcm, info, monitor);
  }

}

代码示例来源:origin: org.codehaus.fabric3/fabric3-introspection-java

public void visitType(Management annotation, Class<?> type, InjectingComponentType componentType, IntrospectionContext context) {
  componentType.setManaged(true);
  String name = annotation.name();
  if (name.trim().length() == 0) {
    name = type.getSimpleName();
  String group = annotation.group();
  if (group.trim().length() == 0) {
    group = null;
  String description = annotation.description();
  if (description.trim().length() == 0) {
    description = null;
  for (String roleName : annotation.readRoles()) {
    readRoles.add(new Role(roleName));
  for (String roleName : annotation.writeRoles()) {
    writeRoles.add(new Role(roleName));
  String path = annotation.path();
  ManagementInfo info = new ManagementInfo(name, group, path, description, type.getName(), readRoles, writeRoles);
  ManagementInfo overriden = componentType.getManagementInfo();

代码示例来源:origin: com.carecon.fabric3/fabric3-management-jmx

Management annotation = clazz.getAnnotation(Management.class);
if (annotation != null) {
  String[] readRoleNames = annotation.readRoles();
  for (String roleName : readRoleNames) {
    readRoles.add(new Role(roleName));
  String[] writeRoleNames = annotation.writeRoles();
  for (String roleName : writeRoleNames) {
    writeRoles.add(new Role(roleName));
  path = annotation.path();

代码示例来源:origin: com.carecon.fabric3/fabric3-introspection-java

public void visitType(Management annotation, Class<?> type, InjectingComponentType componentType, IntrospectionContext context) {
  componentType.setManaged(true);
  String name = annotation.name();
  if (name.trim().length() == 0) {
    name = type.getSimpleName();
  String group = annotation.group();
  if (group.trim().length() == 0) {
    group = null;
  String description = annotation.description();
  if (description.trim().length() == 0) {
    description = null;
  for (String roleName : annotation.readRoles()) {
    readRoles.add(new Role(roleName));
  for (String roleName : annotation.writeRoles()) {
    writeRoles.add(new Role(roleName));
  String path = annotation.path();
  ManagementInfo info = new ManagementInfo(name, group, path, description, type.getName(), readRoles, writeRoles);
  ManagementInfo overriden = componentType.getManagementInfo();

代码示例来源:origin: org.codehaus.fabric3/fabric3-management-jmx

Management annotation = clazz.getAnnotation(Management.class);
if (annotation != null) {
  String[] readRoleNames = annotation.readRoles();
  for (String roleName : readRoleNames) {
    readRoles.add(new Role(roleName));
  String[] writeRoleNames = annotation.writeRoles();
  for (String roleName : writeRoleNames) {
    writeRoles.add(new Role(roleName));
  path = annotation.path();

代码示例来源:origin: org.codehaus.fabric3/fabric3-datasource

/**
 * Default DataSourceRegistry implementation.
 */
@Management(name = "DataSourceRegistry", path = "/runtime/datasources")
public class DataSourceRegistryImpl implements DataSourceRegistry {
  private Map<String, DataSource> dataSources = new ConcurrentHashMap<String, DataSource>();

  @ManagementOperation(path = "/")
  public Set<String> getDataSourceNames() {
    return dataSources.keySet();
  }

  public DataSource getDataSource(String name) {
    return dataSources.get(name);
  }

  public Map<String, DataSource> getDataSources() {
    return dataSources;
  }

  public void register(String name, DataSource dataSource) {
    dataSources.put(name, dataSource);
  }

  public DataSource unregister(String name) {
    return dataSources.remove(name);
  }
}

代码示例来源:origin: org.fabric3/fabric3-datasource

/**
 * Default DataSourceRegistry implementation.
 */
@Management(name = "DataSourceRegistry", path = "/runtime/datasources")
public class DataSourceRegistryImpl implements DataSourceRegistry {
  private Map<String, DataSource> dataSources = new ConcurrentHashMap<>();

  @ManagementOperation(path = "/")
  public Set<String> getDataSourceNames() {
    return dataSources.keySet();
  }

  public DataSource getDataSource(String name) {
    return dataSources.get(name);
  }

  public Map<String, DataSource> getDataSources() {
    return dataSources;
  }

  public void register(String name, DataSource dataSource) {
    dataSources.put(name, dataSource);
  }

  public DataSource unregister(String name) {
    return dataSources.remove(name);
  }
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty

@Management
public class ManagedServletHolder extends ServletHolder {

代码示例来源:origin: org.fabric3/fabric3-jetty

@Management
public class ManagedServletHolder extends ServletHolder {

代码示例来源:origin: org.fabric3/fabric3-jetty

@Management
public class ManagedServletHandler extends ServletHandler {
  private static final String[] EMPTY_RESULT = new String[0];

代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty

@Management
public class ManagedServletHandler extends ServletHandler {
  private static final String[] EMPTY_RESULT = new String[0];

代码示例来源:origin: org.codehaus.fabric3.standalone/fabric3-standalone-admin

@Management(name = "RuntimeDomain", group = "kernel", description = "Manages the runtime domain")
public class RuntimeDomainMBeanImpl extends AbstractDomainMBean {
  private ContributionService contributionService;

代码示例来源:origin: org.fabric3/fabric3-container-web-jetty

@Management
public class ManagedWebAppContext extends WebAppContext {
  public ManagedWebAppContext(String webAppDir, String contextPath) {

代码示例来源:origin: com.carecon.fabric3/fabric3-container-web-jetty

@Management
public class ManagedWebAppContext extends WebAppContext {
  public ManagedWebAppContext(String webAppDir, String contextPath) {

代码示例来源:origin: org.fabric3/fabric3-federation-deployment

@Management(name = "RollbackService",
      path = "/runtime/deployment/rollback",
      group = "deployment",

代码示例来源:origin: com.carecon.fabric3/fabric3-binding-zeromq

@Management
public class NonReliableSingleThreadPublisher implements Publisher {
  private ContextManager manager;

代码示例来源:origin: org.fabric3/fabric3-atomikos-jms

@Management
public class ConnectionFactoryWrapper {
  private AtomikosConnectionFactoryBean delegate;

代码示例来源:origin: com.carecon.fabric3/fabric3-binding-zeromq

@Management
public class NonReliableOneWayReceiver extends AbstractReceiver implements Thread.UncaughtExceptionHandler {

代码示例来源:origin: org.codehaus.fabric3/fabric3-atomikos-jms

@Management
public class ConnectionFactoryWrapper {
  private AtomikosConnectionFactoryBean delegate;

代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq

@Management
public class NonReliableSingleThreadPublisher implements Publisher {
  private ContextManager manager;

相关文章