com.sap.mdm.repository
Class RepositoryProperties

java.lang.Object
  extended bycom.sap.mdm.repository.RepositoryProperties

public class RepositoryProperties
extends Object

RepositoryIdentifier defines a repository.


Field Summary
static int ARCHIVING_OPERATION
          Archiving a repository.
static int ARCHIVING_REPOSITORY_TYPE
          Deprecated. replaced by getRunningOperations()
static int BACKING_UP_REPOSITORY_TYPE
          Deprecated. replaced by getRunningOperations()
static int CD650_SEGMENT_SIZE
          CD650 defines a 650 MB segment suitable for a 74 minute CD.
static int CD700_SEGMENT_SIZE
          CD700 defines a 700 MB segment suitable for a 80 minute CD.
static int COMPACTING_OPERATION
          Compacting a repository.
static int CREATING_SLAVING_OPERATION
          Creating a slaving repository from a master repository.
static int DUPLICATING_OPERATION
          The repository is being duplicating.
static int DUPLICATING_REPOSITORY_TYPE
          Deprecated. replaced by getRunningOperations()
static int DVD1_SEGMENT_SIZE
          DVD1 defines a 4490 MB segment suitable for a 4.7 GB DVD disk.
static int DVD2_SEGMENT_SIZE
          DVD2 defines a 8120 MB segment suitable for a 8.5 GB DVD disk.
static int FOUR_PARTITIONS
          FOUR indicates four partitions (Main, Thumbnail, Original, Variant).
static int MASTER_REPOSITORY_TYPE
          MASTER_REPOSITORY_TYPE defines the repository as a master repository.
static int NORMAL_REPOSITORY_TYPE
          NORMAL_REPOSITORY_TYPE defines the repository as a normal repository.
static int ONE_PARTITION
          ONE indicates one partition (Main+Thumbnail+Original+Variant).
static int PUBLICATION_SLAVE_REPOSITORY_TYPE
          PUBLICATION_SLAVE_REPOSITORY_TYPE defines the repository as a publication slave repository.
static int READ_ONLY_REPOSITORY_TYPE
          Deprecated. replaced by isReadOnlyRepository(). The check would be "getRepositoryType() == NORMAL_REPOSITORY_TYPE && isReadOnlyRepository() == true)".
static int REPAIRING_OPERATION
          Repairing a repository.
static int SINGLE_SEGMENT_SIZE
          SINGLE defines an unlimited segment size.
static int SLAVE_REPOSITORY_TYPE
          SLAVE_REPOSITORY_TYPE defines the repository as a slave repository.
static int TWO_PARTITIONS
          TWO indicates two partitions (Main+Thumbnail, Original+Variant).
static int UNARCHIVING_OPERATION
          Unarchiving a repository.
static int UPDATING_OPERATION
          Updating a repository.
static int VERIFYING_OPERATION
          Verifying the integrity of the repository.
static int VERIFYING_REPOSITORY_TYPE
          Deprecated. replaced by getRunningOperations()
static int ZIP100_SEGMENT_SIZE
          ZIP100 defines a 100 MB segment suitable for IOMEGA's 100MB ZIP disk.
static int ZIP250_SEGMENT_SIZE
          ZIP250 defines a 250 MB segment suitable for IOMEGA's 250MB Zip disk.
 
Constructor Summary
RepositoryProperties(RepositoryIdentifier reposId, String description, int repositoryType, boolean isStemmed, RegionProperties[] regions, int port, RepositoryStatus repositoryStatus, int runningOperations, boolean isBroken, boolean isMemoryCorrupt, boolean isSchemaCorrupt, boolean isReadOnlyRepository)
          Constructs with the specified parameters.
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Retrieves the repository description.
 int getPort()
          Returns the port number the repository is mounted on.
 RegionProperties[] getRegions()
          Returns the regions available for the repository.
 RepositoryIdentifier getRepositoryIdentifier()
          Retrieves the repository identifier.
 RepositoryStatus getRepositoryStatus()
          Returns the repository status, for example started, starting, stopped, stopping, schedule for stopping, etc.
 int getRepositoryType()
          Returns the repository type: normal, master and slave.
 int getRunningOperations()
          Returns the running operations such as archiving, duplicating, compacting, verifying, etc.
 int hashCode()
           
 boolean isBrokenSynchronization()
          Indicates if the master-slave synchronization is broken.
 boolean isMemoryCorrupt()
          Indicates a running repository where a modifying command successfully updated the DBMS but failed to update memory, likely leaving memory structures in an inconsistent state.
 boolean isReadOnlyRepository()
          Indicates the repository is read-only.
 boolean isSchemaCorrupt()
          Indicates a stopped repository where a multi-transaction schema change failed in the middle of a series of transactions and was unable to roll back all transactions.
 boolean isStemmed()
          Returns whether the repository is stemmed.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE_SEGMENT_SIZE

public static final int SINGLE_SEGMENT_SIZE
SINGLE defines an unlimited segment size.

See Also:
Constant Field Values

ZIP100_SEGMENT_SIZE

public static final int ZIP100_SEGMENT_SIZE
ZIP100 defines a 100 MB segment suitable for IOMEGA's 100MB ZIP disk.

See Also:
Constant Field Values

ZIP250_SEGMENT_SIZE

public static final int ZIP250_SEGMENT_SIZE
ZIP250 defines a 250 MB segment suitable for IOMEGA's 250MB Zip disk.

See Also:
Constant Field Values

CD650_SEGMENT_SIZE

public static final int CD650_SEGMENT_SIZE
CD650 defines a 650 MB segment suitable for a 74 minute CD.

See Also:
Constant Field Values

CD700_SEGMENT_SIZE

public static final int CD700_SEGMENT_SIZE
CD700 defines a 700 MB segment suitable for a 80 minute CD.

See Also:
Constant Field Values

DVD1_SEGMENT_SIZE

public static final int DVD1_SEGMENT_SIZE
DVD1 defines a 4490 MB segment suitable for a 4.7 GB DVD disk.

See Also:
Constant Field Values

DVD2_SEGMENT_SIZE

public static final int DVD2_SEGMENT_SIZE
DVD2 defines a 8120 MB segment suitable for a 8.5 GB DVD disk.

See Also:
Constant Field Values

ONE_PARTITION

public static final int ONE_PARTITION
ONE indicates one partition (Main+Thumbnail+Original+Variant).

See Also:
Constant Field Values

TWO_PARTITIONS

public static final int TWO_PARTITIONS
TWO indicates two partitions (Main+Thumbnail, Original+Variant).

See Also:
Constant Field Values

FOUR_PARTITIONS

public static final int FOUR_PARTITIONS
FOUR indicates four partitions (Main, Thumbnail, Original, Variant).

See Also:
Constant Field Values

NORMAL_REPOSITORY_TYPE

public static final int NORMAL_REPOSITORY_TYPE
NORMAL_REPOSITORY_TYPE defines the repository as a normal repository.

See Also:
Constant Field Values

READ_ONLY_REPOSITORY_TYPE

public static final int READ_ONLY_REPOSITORY_TYPE
Deprecated. replaced by isReadOnlyRepository(). The check would be "getRepositoryType() == NORMAL_REPOSITORY_TYPE && isReadOnlyRepository() == true)".

READ_ONLY_REPOSITORY_TYPE defines the repository as a share repository.

See Also:
Constant Field Values

MASTER_REPOSITORY_TYPE

public static final int MASTER_REPOSITORY_TYPE
MASTER_REPOSITORY_TYPE defines the repository as a master repository.

See Also:
Constant Field Values

SLAVE_REPOSITORY_TYPE

public static final int SLAVE_REPOSITORY_TYPE
SLAVE_REPOSITORY_TYPE defines the repository as a slave repository.

See Also:
Constant Field Values

PUBLICATION_SLAVE_REPOSITORY_TYPE

public static final int PUBLICATION_SLAVE_REPOSITORY_TYPE
PUBLICATION_SLAVE_REPOSITORY_TYPE defines the repository as a publication slave repository.

See Also:
Constant Field Values

BACKING_UP_REPOSITORY_TYPE

public static final int BACKING_UP_REPOSITORY_TYPE
Deprecated. replaced by getRunningOperations()

BACKING_UP_REPOSITORY_TYPE defines the repository as being back up.

See Also:
Constant Field Values

VERIFYING_REPOSITORY_TYPE

public static final int VERIFYING_REPOSITORY_TYPE
Deprecated. replaced by getRunningOperations()

VERIFYING_REPOSITORY_TYPE defines the repository as being verified.

See Also:
Constant Field Values

DUPLICATING_REPOSITORY_TYPE

public static final int DUPLICATING_REPOSITORY_TYPE
Deprecated. replaced by getRunningOperations()

DUPLICATING_REPOSITORY_TYPE defines the repository as being duplicated.

See Also:
Constant Field Values

ARCHIVING_REPOSITORY_TYPE

public static final int ARCHIVING_REPOSITORY_TYPE
Deprecated. replaced by getRunningOperations()

ARCHIVING_REPOSITORY_TYPE defines the repository as being archived.

See Also:
Constant Field Values

DUPLICATING_OPERATION

public static final int DUPLICATING_OPERATION
The repository is being duplicating.

See Also:
Constant Field Values

CREATING_SLAVING_OPERATION

public static final int CREATING_SLAVING_OPERATION
Creating a slaving repository from a master repository.

See Also:
Constant Field Values

ARCHIVING_OPERATION

public static final int ARCHIVING_OPERATION
Archiving a repository.

See Also:
Constant Field Values

UNARCHIVING_OPERATION

public static final int UNARCHIVING_OPERATION
Unarchiving a repository.

See Also:
Constant Field Values

COMPACTING_OPERATION

public static final int COMPACTING_OPERATION
Compacting a repository.

See Also:
Constant Field Values

UPDATING_OPERATION

public static final int UPDATING_OPERATION
Updating a repository.

See Also:
Constant Field Values

VERIFYING_OPERATION

public static final int VERIFYING_OPERATION
Verifying the integrity of the repository.

See Also:
Constant Field Values

REPAIRING_OPERATION

public static final int REPAIRING_OPERATION
Repairing a repository.

See Also:
Constant Field Values
Constructor Detail

RepositoryProperties

public RepositoryProperties(RepositoryIdentifier reposId,
                            String description,
                            int repositoryType,
                            boolean isStemmed,
                            RegionProperties[] regions,
                            int port,
                            RepositoryStatus repositoryStatus,
                            int runningOperations,
                            boolean isBroken,
                            boolean isMemoryCorrupt,
                            boolean isSchemaCorrupt,
                            boolean isReadOnlyRepository)
Constructs with the specified parameters.

Parameters:
reposId - the repository
description - the repository description
repositoryType - the repository type
isStemmed - whether the repository is stemmed
regions - the list of regions supported by the repository
port - the repository port
isBroken - master-slave synchronization is broken
isMemoryCorrupt - the memory cache is inconsistent with the DBMS
isSchemaCorrupt - TODO
Method Detail

getRepositoryIdentifier

public RepositoryIdentifier getRepositoryIdentifier()
Retrieves the repository identifier.

Returns:
the repository.

getDescription

public String getDescription()
Retrieves the repository description.

Returns:
the description.

isStemmed

public boolean isStemmed()
Returns whether the repository is stemmed.

Returns:
whether the repository is stemmed.

getRepositoryType

public int getRepositoryType()
Returns the repository type: normal, master and slave.

Returns:
the repository type.

getRepositoryStatus

public RepositoryStatus getRepositoryStatus()
Returns the repository status, for example started, starting, stopped, stopping, schedule for stopping, etc.

Returns:
the repository status

getRunningOperations

public int getRunningOperations()
Returns the running operations such as archiving, duplicating, compacting, verifying, etc. This is a bitwise result.

Returns:
the running operations

isBrokenSynchronization

public boolean isBrokenSynchronization()
Indicates if the master-slave synchronization is broken.

Returns:
true if the master-slave synchronization is broken, otherwise false

isMemoryCorrupt

public boolean isMemoryCorrupt()
Indicates a running repository where a modifying command successfully updated the DBMS but failed to update memory, likely leaving memory structures in an inconsistent state.

Note: A repository in this state needs to be restarted. Please refer to the MDM Console Guide.

Returns:
true if the repository memory is corrupted, otherwise false
Since:
7.1

isSchemaCorrupt

public boolean isSchemaCorrupt()
Indicates a stopped repository where a multi-transaction schema change failed in the middle of a series of transactions and was unable to roll back all transactions.

Returns:
true if the repository schema is corrupted, otherwise false
Since:
7.1

isReadOnlyRepository

public boolean isReadOnlyRepository()
Indicates the repository is read-only.

Returns:
true if the repository is read-only, otherwise false

getRegions

public RegionProperties[] getRegions()
Returns the regions available for the repository.

Returns:
Returns the regions.

getPort

public int getPort()
Returns the port number the repository is mounted on.

Returns:
the port number.

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.