Search in sources :

Example 1 with NamespaceServerSideCode

use of com.ms.silverking.cloud.dht.NamespaceServerSideCode in project SilverKing by Morgan-Stanley.

the class DataMigrationTool method modifyProperties.

private void modifyProperties(File sourceDir) throws IOException {
    NamespaceProperties originalProperties;
    NamespaceOptions originalOptions;
    NamespaceProperties modifiedProperties;
    NamespaceOptions modifiedOptions;
    originalProperties = NamespacePropertiesIO.read(sourceDir);
    originalOptions = originalProperties.getOptions();
    modifiedOptions = originalOptions.namespaceServerSideCode(new NamespaceServerSideCode("", "com.ms.silverking.cloud.skfs.dir.serverside.DirectoryServer", "com.ms.silverking.cloud.skfs.dir.serverside.DirectoryServer"));
    modifiedProperties = originalProperties.options(modifiedOptions);
    NamespacePropertiesIO.rewrite(sourceDir, modifiedProperties);
}
Also used : NamespaceOptions(com.ms.silverking.cloud.dht.NamespaceOptions) NamespaceProperties(com.ms.silverking.cloud.dht.common.NamespaceProperties) NamespaceServerSideCode(com.ms.silverking.cloud.dht.NamespaceServerSideCode)

Aggregations

NamespaceOptions (com.ms.silverking.cloud.dht.NamespaceOptions)1 NamespaceServerSideCode (com.ms.silverking.cloud.dht.NamespaceServerSideCode)1 NamespaceProperties (com.ms.silverking.cloud.dht.common.NamespaceProperties)1