FileDocCategorySizeDatePackage
ClusteredInstance.javaAPI DocGlassfish v2 API5965Fri May 04 22:35:02 BST 2007com.sun.enterprise.tools.upgrade.cluster

ClusteredInstance

public class ClusteredInstance extends Object
author
prakash

Fields Summary
private String
instanceName
private String
user
private String
host
private String
port
private String
domain
private String
instancePort
private boolean
master
Constructors Summary
public ClusteredInstance(String instName)
Creates a new instance of ClusteredInstance

        this.instanceName = instName;
    
Methods Summary
public voidextractDataFromLine(java.lang.String line)

        if(line.trim().startsWith("user")){
            this.user = line.substring("user".length()).trim();
        }else if(line.trim().startsWith("host")){
            this.host = line.substring("host".length()).trim();
        }else if(line.trim().startsWith("port")){
            this.port = line.substring("port".length()).trim();
        }else if(line.trim().startsWith("domain")){
            this.domain = line.substring("domain".length()).trim();
        }else if(line.trim().startsWith("instanceport")){
            this.instancePort = line.substring("instanceport".length()).trim();
        }else if(line.trim().startsWith("master")){
            String masterStr = line.substring("master".length()).trim();
            this.master = ("true".equals(masterStr)) ? true :false; 
        }        
    
public java.lang.StringgetDomain()
Gets property domain.

return
Value of property domain.

        return domain;
    
public java.lang.StringgetHost()
Gets property host.

return
Value of property host.

        return host;
    
public java.lang.StringgetInstanceName()
Gets property instanceName.

return
Value of property instanceName.

        return instanceName;
    
public java.lang.StringgetInstancePort()
Gets property instancePort.

return
Value of property instancePort.

        return instancePort;
    
public java.lang.StringgetPort()
Gets property port.

return
Value of property port.

        return port;
    
public java.lang.StringgetUser()
Gets property user.

return
Value of property user.

        return user;
    
public booleanisMaster()
Gets property master.

return
Value of property master.

        return master;
    
public voidsetDomain(java.lang.String domain)
Sets property domain.

param
domain New value of property domain.

        this.domain = domain;
    
public voidsetHost(java.lang.String host)
Sets property host.

param
host New value of property host.

        this.host = host;
    
public voidsetInstanceName(java.lang.String instanceName)
Sets property instanceName.

param
instanceName New value of property instanceName.

        this.instanceName = instanceName;
    
public voidsetInstancePort(java.lang.String instancePort)
Sets property instancePort.

param
instancePort New value of property instancePort.

        this.instancePort = instancePort;
    
public voidsetMaster(boolean master)
Sets property master.

param
master New value of property master.

        this.master = master;
    
public voidsetPort(java.lang.String port)
Sets property port.

param
port New value of property port.

        this.port = port;
    
public voidsetUser(java.lang.String user)
Sets property user.

param
user New value of property user.

        this.user = user;