org.glassfish.loadbalancer.admin.cli
Class CreateHTTPLBRefCommand

java.lang.Object
  extended by org.glassfish.loadbalancer.admin.cli.LBCommandsBase
      extended by org.glassfish.loadbalancer.admin.cli.CreateHTTPLBRefCommand
All Implemented Interfaces:
AdminCommand

@Service(name="create-http-lb-ref")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@TargetType(value={STANDALONE_INSTANCE,CLUSTER})
@ExecuteOn(value=DAS)
public final class CreateHTTPLBRefCommand
extends LBCommandsBase
implements AdminCommand

This is a remote command that supports the create-http-lb-ref CLI command. It creates a server-ref|cluster-ref, health-checker by using the given parameters. lbname: the name of the load-balancer element that exists config: the name of the lb-config element that exists target: cluster-ref or server-ref parameter of lb-config * healthcheckerurl: url attribute of health-checker healthcheckerinterval: interval-in-seconds parameter of health-checker healthcheckertimeout: timeout-in-seconds parameter of health-checker

Author:
Yamini K B

Constructor Summary
CreateHTTPLBRefCommand()
           
 
Method Summary
 void createLBRef(java.lang.String target, java.lang.String configName)
           
 void execute(AdminCommandContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateHTTPLBRefCommand

public CreateHTTPLBRefCommand()
Method Detail

execute

public void execute(AdminCommandContext context)
Specified by:
execute in interface AdminCommand

createLBRef

public void createLBRef(java.lang.String target,
                        java.lang.String configName)


Copyright © 2012 GlassFish Community. All Rights Reserved.