com.sun.portal.admin.cli.commands .AdminBaseCommand com.sun.portal.admin.cli.commands .ConfigureInstancesCommand ConfigureInstancesCommand public class ConfigureInstancesCommand extends AdminBaseCommand (Code) This class implements the psadmin configure-instances subcommand.
This CLI is meant as a private CLI used only during configuration
The configure-instances subcommand calls the PortalMBean:configureInstances call
for all instances that belong to that portal, which does the the following tasks:
adds to instance server classpath entries specified in the conf/server.classpath if present
add to instance jvm-options entries specified in the conf/jvmoptions.properties if present
add to instance server.policy entries specified in the conf/server.policy if present
adds to instance jdbc resources specified in the conf/*.datasource if present
adds to instance jndi lookups specified in the conf/*.jndi if present
Note: All configuration should check if entries being configured already exist.
Note: These configuration require a webcontainer restart before coming into affect
runCommand public void runCommand() throws CommandException, CommandValidationException(Code) Executes the subcommand.
exception: com.sun.enterprise.cli.framework.CommandException - If error occurrs during the execution.
validateConfiguration protected void validateConfiguration() throws CommandException(Code)
Methods inherited from com.sun.portal.admin.cli.commands.AdminBaseCommand protected File checkForFileExistence(String parent, String fileName) throws CommandException(Code) (Java Doc) protected void closeMBeanServerConnection() throws CommandException(Code) (Java Doc) protected Properties createPropertiesParam(String propertyVal) throws CommandException(Code) (Java Doc) public Object getAttribute(MBeanServerConnection mbs, ObjectName obj, String attribute)(Code) (Java Doc) protected String getDomainId()(Code) (Java Doc) protected String getHost()(Code) (Java Doc) public Set getInstanceHosts(MBeanServerConnection msc, String portalId) throws CommandException(Code) (Java Doc) protected String getInstanceId()(Code) (Java Doc) protected List getInstanceNames(String portalId) throws CommandException(Code) (Java Doc) protected String getInteractiveOption(String optionName, String prompt, boolean interactive) throws CommandValidationException(Code) (Java Doc) protected String getLocalizedString(String key)(Code) (Java Doc) protected String getLocalizedString(String key, Object [] toInsert)(Code) (Java Doc) public static Logger getLogger()(Code) (Java Doc) protected MBeanServerConnection getMBeanServerConnection(String id, String pwd, String host) throws CommandException(Code) (Java Doc) protected List getMultiValueFromString(String value) throws CommandException(Code) (Java Doc) protected List getMultiValueOption(String optionName) throws CommandException(Code) (Java Doc) protected ObjectName getObjectName() throws CommandException(Code) (Java Doc) protected String getOperationName() throws CommandException(Code) (Java Doc) protected PSConfigContext getPSConfigContext() throws CommandException(Code) (Java Doc) protected Object [] getParamsInfo() throws CommandException, CommandValidationException(Code) (Java Doc) protected String getPassword() throws CommandValidationException(Code) (Java Doc) protected String getPortalId()(Code) (Java Doc) protected List getPortalNames() throws CommandException(Code) (Java Doc) protected String getPortalUri()(Code) (Java Doc) protected String getReturnType()(Code) (Java Doc) protected String getSearchServerId()(Code) (Java Doc) protected List getSearchServers() throws CommandException(Code) (Java Doc) protected String [] getTypesInfo()(Code) (Java Doc) protected String getUserId()(Code) (Java Doc) protected Properties getWebConfigProp() throws CommandException(Code) (Java Doc) protected void handleReturnValue(Object returnval)(Code) (Java Doc) protected boolean hasWebLogicAdminServerInstance(String portalId)(Code) (Java Doc) protected boolean isExistingInstance() throws CommandException(Code) (Java Doc) protected boolean isLocal()(Code) (Java Doc) public void setEnvironment(String opt, String value)(Code) (Java Doc) protected void setOutput()(Code) (Java Doc) protected void validateInstance() throws CommandException(Code) (Java Doc) protected void validateNonSRACommand() throws CommandException(Code) (Java Doc) public boolean validateOptions() throws CommandValidationException(Code) (Java Doc) protected void validatePassword() throws CommandException(Code) (Java Doc) protected void validatePortalId() throws CommandException(Code) (Java Doc) protected void validatePortalUri() throws CommandException(Code) (Java Doc) protected void validateSRACommand() throws CommandException(Code) (Java Doc) protected void validateSearchServerID() throws CommandException(Code) (Java Doc)