Esempio n. 1
0
  @Override
  protected String getObjectNameKeyProperties() {
    StringBuilder name = new StringBuilder("type=Cluster");

    Container container = getContainer();
    if (container != null) {
      name.append(container.getMBeanKeyProperties());
    }

    return name.toString();
  }
Esempio n. 2
0
  private void registerMember(Member member) {
    // JMX registration
    StringBuilder name = new StringBuilder("type=Cluster");
    Container container = getContainer();
    if (container != null) {
      name.append(container.getMBeanKeyProperties());
    }
    name.append(",component=Member,name=");
    name.append(ObjectName.quote(member.getName()));

    ObjectName oname = register(member, name.toString());
    memberOnameMap.put(member, oname);
  }
Esempio n. 3
0
 @Override
 protected void initInternal() throws LifecycleException {
   super.initInternal();
   if (clusterDeployer != null) {
     StringBuilder name = new StringBuilder("type=Cluster");
     Container container = getContainer();
     if (container != null) {
       name.append(container.getMBeanKeyProperties());
     }
     name.append(",component=Deployer");
     onameClusterDeployer = register(clusterDeployer, name.toString());
   }
 }