Beispiel #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();
  }
Beispiel #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);
  }
Beispiel #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());
   }
 }