Skip navigation links


com.essbase.eas.essbase.defs
Class DefaultPartition

java.lang.Object
  extended by com.essbase.eas.essbase.defs.DefaultPartition

All Implemented Interfaces:
java.lang.Cloneable

public class DefaultPartition
extends java.lang.Object
implements java.lang.Cloneable

Field Summary
static java.lang.String[] colNames
           
static int DEF_LOGIN
           
static int DEF_PWD
           
static int DN_SOURCE
           
static int DN_TARGET
           
static int ESSBASE_DEFAULT_PORT_NUM
           
static java.lang.String LINKED
           
static int LOC_USER_PWD
           
static int LOCAL_COMMENT
           
static int LOCAL_USER
           
static int MAP_TYPE
           
static int OUTLINE_DN
           
static int PART_LINKED
           
static int PART_REPLICATED
           
static int PART_TRANSPARENT
           
static int PART_TYPE
           
static java.lang.String REPLICATED
           
static int SOURCE_APP
           
static int SOURCE_DB
           
static int SOURCE_HOST
           
static int SOURCE_HOST_NAME
           
static int SRC_CELL_COUNT
           
static int SRC_DATA_TIME
           
static int SRC_MEMBER
           
static int SRC_SLICE
           
static int SRC_UPD_TIME
           
static int SRCSERVERIP
           
static java.lang.String TARGET
           
static int TARGET_APP
           
static int TARGET_COMMENT
           
static int TARGET_DB
           
static int TARGET_HOST
           
static int TARGET_HOST_NAME
           
static int TARGET_USER
           
static int TGT_CELL_COUNT
           
static int TGT_DATA_TIME
           
static int TGT_MEMBER
           
static int TGT_SLICE
           
static int TGT_UPD_TIME
           
static int TGT_USER_PWD
           
static int TGTSERVERIP
           
static java.lang.String TRANSPARENT
           
static int UPD_ALLOWED
           
static int VALID_PART
           

 

Constructor Summary
DefaultPartition()
           

 

Method Summary
 DefaultPartitionArea addArea(java.lang.String src, java.lang.String tgt)
           
 DefaultPartitionArea addArea(java.lang.String src, java.lang.String tgt, java.lang.String srcalias, java.lang.String tgtalias)
           
 void addDatabase(Database db)
           
 void addGloablMap(java.lang.String src, java.lang.String tgt)
           
 DefaultPartitionMap addMap(java.lang.String source, java.lang.String target)
           
 void clearAreas()
           
 void clearMappings()
           
 java.lang.Object clone()
           
 boolean equals(DefaultPartition part)
           
 java.util.Iterator getAreaIterator()
           
static int[] getColIndex(javax.swing.table.TableModel model)
           
 java.lang.String getCreateString()
           
 java.lang.String getDefaultPwd()
           
 java.lang.String getDefaultUser()
           
static java.lang.String getDetailDisplayText(Database db)
           
static java.lang.String getDetailDisplayText(Database db, boolean bPrivate)
           
static java.lang.String getDetailDisplayText(java.lang.String appname, java.lang.String dbname, boolean bPrivate)
           
 int getDirection()
           
static java.lang.String getDisplayText(Database db)
           
static java.lang.String getDisplayText(java.lang.String appname, java.lang.String dbname)
           
 java.lang.String getDropOrphanSourceToTargetText(Database database)
           
 java.lang.String getDropOrphanTargetToSourceText(Database database)
           
 java.lang.String getDropString()
           
 java.lang.String getDropString(boolean bForce)
           
 java.lang.String getDropStringFromTarget()
           
 java.lang.String getDropStringFromTarget(boolean bForce)
           
 java.util.List getDupAreaList()
           
 java.util.Iterator getMappingIterator()
           
 java.lang.String getOriginalSourceServer()
           
 java.lang.String getOriginalTargetServer()
           
 boolean getOutlineChangeInDirectionOfData()
           
static int getPartitionType(java.lang.String type)
           
 java.lang.String getReplaceString()
           
 java.lang.String getReplicateString(boolean bUpdateAll)
           
 java.lang.String getSourceApplication()
           
 java.lang.String getSourceApplicationChangeText(java.lang.String newApp, boolean both)
           
 java.lang.String getSourceCluster()
           
 java.lang.String getSourceComment()
           
 java.lang.String getSourceDatabase()
           
 java.lang.String getSourceDatabaseChangeText(java.lang.String newDb)
           
 java.lang.String getSourceDataTime()
           
 java.lang.String getSourcePassword()
           
 java.lang.String getSourceServer()
           
 java.lang.String getSourceServerChangeText(java.lang.String newHost, boolean both)
           
 java.lang.String getSourceServerForMaxLCommand()
           
 java.lang.String getSourceServerIP()
           
 java.lang.String getSourceServerName()
           
 java.lang.String getSourceTime()
           
 void getSourceToTargetText(java.lang.StringBuffer buf)
           
 java.lang.String getSourceUser()
           
 java.lang.String getSourceUserChangeText(java.lang.String newUser, java.lang.String pwd)
           
 java.lang.String getSrcString()
           
 java.lang.String getStringType()
           
 java.lang.String getSynchAllText()
           
 java.lang.String getSynchNothingText()
           
 java.lang.String getSynchOutlineText()
           
 java.lang.String getSynchPurgeText()
           
 java.lang.String getTargetApplication()
           
 java.lang.String getTargetApplicationChangeText(java.lang.String newApp, boolean both)
           
 java.lang.String getTargetCluster()
           
 java.lang.String getTargetComment()
           
 java.lang.String getTargetDatabase()
           
 java.lang.String getTargetDatabaseChangeText(java.lang.String newDb)
           
 java.lang.String getTargetDataTime()
           
 java.lang.String getTargetPassword()
           
 java.lang.String getTargetServer()
           
 java.lang.String getTargetServerChangeText(java.lang.String newHost, boolean both)
           
 java.lang.String getTargetServerForMaxLCommand()
           
 java.lang.String getTargetServerIP()
           
 java.lang.String getTargetServerName()
           
 java.lang.String getTargetTime()
           
 void getTargetToSourceText(java.lang.StringBuffer buf)
           
 boolean getTargetUpdatable()
           
 java.lang.String getTargetUser()
           
 java.lang.String getTargetUserChangeText(java.lang.String newUser, java.lang.String pwd)
           
 java.lang.String getTgtString()
           
 int getType()
           
 java.lang.String getValidateString()
           
 boolean inDataSync()
           
 boolean inSync()
           
 boolean isDBSource(Database db)
           
 boolean isDBTarget(Database db)
           
static boolean isIP(java.lang.String ip)
           
 boolean isLinked()
           
 boolean isOrphan()
           
 boolean isReplicated()
           
static boolean isSameServer(java.lang.String server1, java.lang.String server2Ip, java.lang.String server2Host)
           
static boolean isServerWithPortMatching(java.lang.String server1, java.lang.String server2)
           
static boolean isServerWithPortMatching(java.lang.String easServer, java.lang.String partServer, java.lang.String partIP)
           
 boolean isSource(java.lang.String host, java.lang.String app, java.lang.String db, int type)
           
 boolean isSrcServer(java.lang.String server)
           
 boolean isTarget(java.lang.String host, java.lang.String app, java.lang.String db, int type)
           
 boolean isTgtServer(java.lang.String server)
           
 boolean isTransparent()
           
 DefaultPartitionArea lookupArea(java.lang.String src, java.lang.String tgt)
           
 DefaultPartitionArea lookupAreaFromAlias(java.lang.String alias)
           
 void removeDatabase(Database db)
           
 void removePartition()
           
 void setAreaList(java.util.List areaList)
           
 void setDefaultPwd(java.lang.String pwd)
           
 void setDefaultUser(java.lang.String user)
           
 void setDirection(int dn)
           
 void setOriginalSourceServer(java.lang.String server)
           
 void setOriginalTargetServer(java.lang.String server)
           
 void setOrphan(boolean orphan)
           
 void setOutlineChangeInDirectionOfData(boolean bDn)
           
 void setSaveTargetComment(boolean saveTargetComment)
           
 void setSourceApplication(java.lang.String app)
           
 void setSourceCluster(java.lang.String value)
           
 void setSourceComment(java.lang.String comment)
           
 void setSourceDatabase(java.lang.String db)
           
 void setSourceDataTime(java.lang.String time)
           
 void setSourcePassword(java.lang.String pwd)
           
 void setSourceServer(java.lang.String server)
           
 void setSourceServerIP(java.lang.String serverIP)
           
 void setSourceServerName(java.lang.String srcServerName)
           
 void setSourceTime(java.lang.String time)
           
 void setSourceUser(java.lang.String user)
           
 void setTargetApplication(java.lang.String app)
           
 void setTargetCluster(java.lang.String value)
           
 void setTargetComment(java.lang.String comment)
           
 void setTargetDatabase(java.lang.String db)
           
 void setTargetDataTime(java.lang.String time)
           
 void setTargetPassword(java.lang.String pwd)
           
 void setTargetServer(java.lang.String server)
           
 void setTargetServerIP(java.lang.String serverIP)
           
 void setTargetServerName(java.lang.String tgtServerName)
           
 void setTargetTime(java.lang.String time)
           
 void setTargetUpdatable(boolean bUpd)
           
 void setTargetUser(java.lang.String user)
           
 void setType(int type)
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

PART_REPLICATED

public static final int PART_REPLICATED
See Also:
Constant Field Values

PART_LINKED

public static final int PART_LINKED
See Also:
Constant Field Values

PART_TRANSPARENT

public static final int PART_TRANSPARENT
See Also:
Constant Field Values

DN_SOURCE

public static final int DN_SOURCE
See Also:
Constant Field Values

DN_TARGET

public static final int DN_TARGET
See Also:
Constant Field Values

TRANSPARENT

public static final java.lang.String TRANSPARENT
See Also:
Constant Field Values

REPLICATED

public static final java.lang.String REPLICATED
See Also:
Constant Field Values

LINKED

public static final java.lang.String LINKED
See Also:
Constant Field Values

TARGET

public static final java.lang.String TARGET
See Also:
Constant Field Values

ESSBASE_DEFAULT_PORT_NUM

public static final int ESSBASE_DEFAULT_PORT_NUM
See Also:
Constant Field Values

colNames

public static final java.lang.String[] colNames

SOURCE_HOST

public static final int SOURCE_HOST
See Also:
Constant Field Values

SOURCE_APP

public static final int SOURCE_APP
See Also:
Constant Field Values

SOURCE_DB

public static final int SOURCE_DB
See Also:
Constant Field Values

TARGET_HOST

public static final int TARGET_HOST
See Also:
Constant Field Values

TARGET_APP

public static final int TARGET_APP
See Also:
Constant Field Values

TARGET_DB

public static final int TARGET_DB
See Also:
Constant Field Values

PART_TYPE

public static final int PART_TYPE
See Also:
Constant Field Values

OUTLINE_DN

public static final int OUTLINE_DN
See Also:
Constant Field Values

LOCAL_COMMENT

public static final int LOCAL_COMMENT
See Also:
Constant Field Values

UPD_ALLOWED

public static final int UPD_ALLOWED
See Also:
Constant Field Values

DEF_LOGIN

public static final int DEF_LOGIN
See Also:
Constant Field Values

TARGET_USER

public static final int TARGET_USER
See Also:
Constant Field Values

VALID_PART

public static final int VALID_PART
See Also:
Constant Field Values

LOCAL_USER

public static final int LOCAL_USER
See Also:
Constant Field Values

TARGET_COMMENT

public static final int TARGET_COMMENT
See Also:
Constant Field Values

SRC_SLICE

public static final int SRC_SLICE
See Also:
Constant Field Values

SRC_CELL_COUNT

public static final int SRC_CELL_COUNT
See Also:
Constant Field Values

TGT_SLICE

public static final int TGT_SLICE
See Also:
Constant Field Values

TGT_CELL_COUNT

public static final int TGT_CELL_COUNT
See Also:
Constant Field Values

MAP_TYPE

public static final int MAP_TYPE
See Also:
Constant Field Values

SRC_MEMBER

public static final int SRC_MEMBER
See Also:
Constant Field Values

TGT_MEMBER

public static final int TGT_MEMBER
See Also:
Constant Field Values

SRC_UPD_TIME

public static final int SRC_UPD_TIME
See Also:
Constant Field Values

TGT_UPD_TIME

public static final int TGT_UPD_TIME
See Also:
Constant Field Values

TGT_USER_PWD

public static final int TGT_USER_PWD
See Also:
Constant Field Values

DEF_PWD

public static final int DEF_PWD
See Also:
Constant Field Values

LOC_USER_PWD

public static final int LOC_USER_PWD
See Also:
Constant Field Values

SRCSERVERIP

public static final int SRCSERVERIP
See Also:
Constant Field Values

TGTSERVERIP

public static final int TGTSERVERIP
See Also:
Constant Field Values

SRC_DATA_TIME

public static final int SRC_DATA_TIME
See Also:
Constant Field Values

TGT_DATA_TIME

public static final int TGT_DATA_TIME
See Also:
Constant Field Values

SOURCE_HOST_NAME

public static final int SOURCE_HOST_NAME
See Also:
Constant Field Values

TARGET_HOST_NAME

public static final int TARGET_HOST_NAME
See Also:
Constant Field Values

Constructor Detail

DefaultPartition

public DefaultPartition()

Method Detail

setType

public void setType(int type)

getType

public int getType()

getStringType

public java.lang.String getStringType()

getPartitionType

public static int getPartitionType(java.lang.String type)

setTargetUpdatable

public void setTargetUpdatable(boolean bUpd)

getTargetUpdatable

public boolean getTargetUpdatable()

setDefaultUser

public void setDefaultUser(java.lang.String user)

setDefaultPwd

public void setDefaultPwd(java.lang.String pwd)

getDefaultUser

public java.lang.String getDefaultUser()

getDefaultPwd

public java.lang.String getDefaultPwd()

getSourceServer

public java.lang.String getSourceServer()

getOriginalSourceServer

public java.lang.String getOriginalSourceServer()

getSourceServerIP

public java.lang.String getSourceServerIP()

getSourceApplication

public java.lang.String getSourceApplication()

getSourceDatabase

public java.lang.String getSourceDatabase()

getTargetServer

public java.lang.String getTargetServer()

getOriginalTargetServer

public java.lang.String getOriginalTargetServer()

getTargetServerIP

public java.lang.String getTargetServerIP()

getTargetApplication

public java.lang.String getTargetApplication()

getTargetDatabase

public java.lang.String getTargetDatabase()

setSourceServer

public void setSourceServer(java.lang.String server)

setOriginalSourceServer

public void setOriginalSourceServer(java.lang.String server)

setSourceServerIP

public void setSourceServerIP(java.lang.String serverIP)

setSourceApplication

public void setSourceApplication(java.lang.String app)

setSourceDatabase

public void setSourceDatabase(java.lang.String db)

setTargetServer

public void setTargetServer(java.lang.String server)

setOriginalTargetServer

public void setOriginalTargetServer(java.lang.String server)

setTargetServerIP

public void setTargetServerIP(java.lang.String serverIP)

setTargetApplication

public void setTargetApplication(java.lang.String app)

setTargetDatabase

public void setTargetDatabase(java.lang.String db)

setDirection

public void setDirection(int dn)

getDirection

public int getDirection()

isReplicated

public boolean isReplicated()

isTransparent

public boolean isTransparent()

isLinked

public boolean isLinked()

setOutlineChangeInDirectionOfData

public void setOutlineChangeInDirectionOfData(boolean bDn)

getOutlineChangeInDirectionOfData

public boolean getOutlineChangeInDirectionOfData()

getSourceUser

public java.lang.String getSourceUser()

getSourcePassword

public java.lang.String getSourcePassword()

getTargetUser

public java.lang.String getTargetUser()

getTargetPassword

public java.lang.String getTargetPassword()

setSourceUser

public void setSourceUser(java.lang.String user)

setSourcePassword

public void setSourcePassword(java.lang.String pwd)

setTargetUser

public void setTargetUser(java.lang.String user)

setTargetPassword

public void setTargetPassword(java.lang.String pwd)

getSourceComment

public java.lang.String getSourceComment()

getTargetComment

public java.lang.String getTargetComment()

setSourceComment

public void setSourceComment(java.lang.String comment)

setTargetComment

public void setTargetComment(java.lang.String comment)

getAreaIterator

public java.util.Iterator getAreaIterator()

getMappingIterator

public java.util.Iterator getMappingIterator()

clearMappings

public void clearMappings()

clearAreas

public void clearAreas()

equals

public boolean equals(DefaultPartition part)

isSource

public boolean isSource(java.lang.String host,
                        java.lang.String app,
                        java.lang.String db,
                        int type)

isTarget

public boolean isTarget(java.lang.String host,
                        java.lang.String app,
                        java.lang.String db,
                        int type)

isDBSource

public boolean isDBSource(Database db)

isDBTarget

public boolean isDBTarget(Database db)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSrcString

public java.lang.String getSrcString()

getTgtString

public java.lang.String getTgtString()

getDropString

public java.lang.String getDropString()

getDropString

public java.lang.String getDropString(boolean bForce)

getDropStringFromTarget

public java.lang.String getDropStringFromTarget()

getDropStringFromTarget

public java.lang.String getDropStringFromTarget(boolean bForce)

getValidateString

public java.lang.String getValidateString()

getCreateString

public java.lang.String getCreateString()

getReplaceString

public java.lang.String getReplaceString()

getReplicateString

public java.lang.String getReplicateString(boolean bUpdateAll)

getSynchPurgeText

public java.lang.String getSynchPurgeText()

getSynchAllText

public java.lang.String getSynchAllText()

getSynchNothingText

public java.lang.String getSynchNothingText()

getSynchOutlineText

public java.lang.String getSynchOutlineText()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

lookupArea

public DefaultPartitionArea lookupArea(java.lang.String src,
                                       java.lang.String tgt)

addMap

public DefaultPartitionMap addMap(java.lang.String source,
                                  java.lang.String target)

addArea

public DefaultPartitionArea addArea(java.lang.String src,
                                    java.lang.String tgt)

addArea

public DefaultPartitionArea addArea(java.lang.String src,
                                    java.lang.String tgt,
                                    java.lang.String srcalias,
                                    java.lang.String tgtalias)

lookupAreaFromAlias

public DefaultPartitionArea lookupAreaFromAlias(java.lang.String alias)

addGloablMap

public void addGloablMap(java.lang.String src,
                         java.lang.String tgt)

getDupAreaList

public java.util.List getDupAreaList()
                              throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

setAreaList

public void setAreaList(java.util.List areaList)

getDisplayText

public static java.lang.String getDisplayText(Database db)

getDisplayText

public static java.lang.String getDisplayText(java.lang.String appname,
                                              java.lang.String dbname)

getDetailDisplayText

public static java.lang.String getDetailDisplayText(Database db)

getDetailDisplayText

public static java.lang.String getDetailDisplayText(Database db,
                                                    boolean bPrivate)

getDetailDisplayText

public static java.lang.String getDetailDisplayText(java.lang.String appname,
                                                    java.lang.String dbname,
                                                    boolean bPrivate)

getSourceTime

public java.lang.String getSourceTime()

getTargetTime

public java.lang.String getTargetTime()

setSourceTime

public void setSourceTime(java.lang.String time)

setTargetTime

public void setTargetTime(java.lang.String time)

inSync

public boolean inSync()

getSourceDataTime

public java.lang.String getSourceDataTime()

getTargetDataTime

public java.lang.String getTargetDataTime()

setSourceDataTime

public void setSourceDataTime(java.lang.String time)

setTargetDataTime

public void setTargetDataTime(java.lang.String time)

inDataSync

public boolean inDataSync()

isSrcServer

public boolean isSrcServer(java.lang.String server)

isTgtServer

public boolean isTgtServer(java.lang.String server)

isSameServer

public static boolean isSameServer(java.lang.String server1,
                                   java.lang.String server2Ip,
                                   java.lang.String server2Host)

isServerWithPortMatching

public static boolean isServerWithPortMatching(java.lang.String server1,
                                               java.lang.String server2)

isServerWithPortMatching

public static boolean isServerWithPortMatching(java.lang.String easServer,
                                               java.lang.String partServer,
                                               java.lang.String partIP)

isIP

public static boolean isIP(java.lang.String ip)

getSourceServerChangeText

public java.lang.String getSourceServerChangeText(java.lang.String newHost,
                                                  boolean both)

getSourceApplicationChangeText

public java.lang.String getSourceApplicationChangeText(java.lang.String newApp,
                                                       boolean both)

getSourceDatabaseChangeText

public java.lang.String getSourceDatabaseChangeText(java.lang.String newDb)

getSourceUserChangeText

public java.lang.String getSourceUserChangeText(java.lang.String newUser,
                                                java.lang.String pwd)

getTargetServerChangeText

public java.lang.String getTargetServerChangeText(java.lang.String newHost,
                                                  boolean both)

getTargetApplicationChangeText

public java.lang.String getTargetApplicationChangeText(java.lang.String newApp,
                                                       boolean both)

getTargetDatabaseChangeText

public java.lang.String getTargetDatabaseChangeText(java.lang.String newDb)

getTargetUserChangeText

public java.lang.String getTargetUserChangeText(java.lang.String newUser,
                                                java.lang.String pwd)

getSourceToTargetText

public void getSourceToTargetText(java.lang.StringBuffer buf)

getTargetToSourceText

public void getTargetToSourceText(java.lang.StringBuffer buf)

getColIndex

public static int[] getColIndex(javax.swing.table.TableModel model)

isOrphan

public boolean isOrphan()

setOrphan

public void setOrphan(boolean orphan)

getDropOrphanSourceToTargetText

public java.lang.String getDropOrphanSourceToTargetText(Database database)

getDropOrphanTargetToSourceText

public java.lang.String getDropOrphanTargetToSourceText(Database database)

addDatabase

public void addDatabase(Database db)

removeDatabase

public void removeDatabase(Database db)

removePartition

public void removePartition()

setSaveTargetComment

public void setSaveTargetComment(boolean saveTargetComment)

getSourceServerName

public java.lang.String getSourceServerName()

setSourceServerName

public void setSourceServerName(java.lang.String srcServerName)

getTargetServerName

public java.lang.String getTargetServerName()

setTargetServerName

public void setTargetServerName(java.lang.String tgtServerName)

setSourceCluster

public void setSourceCluster(java.lang.String value)

getSourceCluster

public java.lang.String getSourceCluster()

setTargetCluster

public void setTargetCluster(java.lang.String value)

getTargetCluster

public java.lang.String getTargetCluster()

getSourceServerForMaxLCommand

public java.lang.String getSourceServerForMaxLCommand()

getTargetServerForMaxLCommand

public java.lang.String getTargetServerForMaxLCommand()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.