public void setStartScriptPrefix(String startScriptPrefix) { this.pluginConfig.setSimpleValue(START_SCRIPT_PREFIX_PROP, startScriptPrefix); }
public void setNativeHost(String host) { this.pluginConfig.setSimpleValue(Property.NATIVE_HOST, host); }
public void setPassword(String password) { this.pluginConfig.setSimpleValue(Property.PASSWORD, password); }
public void setHostname(String hostname) { this.pluginConfig.setSimpleValue(Property.HOSTNAME, hostname); }
public void setUser(String user) { this.pluginConfig.setSimpleValue(Property.USER, user); }
public void setHostConfigFile(File hostConfigFile) { this.pluginConfig.setSimpleValue(Property.HOST_CONFIG_FILE, (hostConfigFile != null) ? hostConfigFile.toString() : null); }
public void setHomeDir(File homeDir) { this.pluginConfig.setSimpleValue(Property.HOME_DIR, (homeDir != null) ? homeDir.toString() : null); }
public void setPort(int port) { this.pluginConfig.setSimpleValue(Property.PORT, String.valueOf(port)); }
public void setNativePort(int port) { this.pluginConfig.setSimpleValue(Property.NATIVE_PORT, String.valueOf(port)); }
public void setBaseDir(File homeDir) { this.pluginConfig.setSimpleValue(Property.BASE_DIR, (homeDir != null) ? homeDir.toString() : null); }
public void setConfigDir(File configDir) { this.pluginConfig.setSimpleValue(Property.CONFIG_DIR, (configDir != null) ? configDir.toString() : null); }
public void setSecure(boolean secure) { this.pluginConfig.setSimpleValue(Property.SECURE, String.valueOf(secure)); }
public void setLogDir(File logDir) { this.pluginConfig.setSimpleValue(Property.LOG_DIR, (logDir != null) ? logDir.toString() : null); }
public void setProductType(JBossProductType productType) { this.pluginConfig.setSimpleValue(Property.PRODUCT_TYPE, (productType != null) ? productType.name() : null); }
public static void updateValuesToConfiguration(StorageNodeConfigurationComposite storageNodeConfigurationComposite, Configuration storageNodeConfiguration) { storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_JMX_PORT_PROPERTY, Integer.toString(storageNodeConfigurationComposite.getJmxPort())); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_HEAP_MAX_PROPERTY, storageNodeConfigurationComposite.getHeapSize()); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_HEAP_MIN_PROPERTY, storageNodeConfigurationComposite.getHeapSize()); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_HEAP_NEW_PROPERTY, storageNodeConfigurationComposite.getHeapNewSize()); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_THREAD_STACK_PROPERTY, storageNodeConfigurationComposite.getThreadStackSize()); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_SAVED_CACHES_PROPERTY, storageNodeConfigurationComposite.getSavedCachesLocation()); storageNodeConfiguration.setSimpleValue(RHQ_STORAGE_COMMIT_LOG_PROPERTY, storageNodeConfigurationComposite.getCommitLogLocation()); storageNodeConfiguration.put(getAllDataFileLocationsProperties(storageNodeConfigurationComposite.getDataLocations())); }
@Override @RequiredPermission(Permission.MANAGE_SETTINGS) public void prepareNodeForUpgrade(Subject subject, StorageNode storageNode) { int storageNodeResourceId = getResourceIdFromStorageNode(storageNode); OperationManagerLocal operationManager = LookupUtil.getOperationManager(); Configuration parameters = new Configuration(); parameters.setSimpleValue("snapshotName", String.valueOf(System.currentTimeMillis())); // scheduling the operation operationManager.scheduleResourceOperation(subject, storageNodeResourceId, "prepareForUpgrade", 0, 0, 0, 0, parameters, "Run by StorageNodeManagerBean.prepareNodeForUpgrade()"); }
pluginConfig.setSimpleValue(RESPONSE_TIME_LOG_FILE_CONFIG_PROP, rtFilePath);
discoveredResource.getPluginConfiguration().setSimpleValue(JAVA_OPTS_ADDITIONAL_PROP, javaOptsAdditionalValue);
/** * Optimally this should be called outside of a transaction, because when scheduling an operation we * currently call back into {@link StorageNodeOperationsHandlerBean#handleOperationUpdateIfNecessary(OperationHistory)}. * This runs the risk of locking if called inside an existing transaction. */ private void scheduleOperation(Subject subject, StorageNode storageNode, Configuration parameters, String operation, int timeout) { ResourceOperationSchedule schedule = new ResourceOperationSchedule(); schedule.setResource(storageNode.getResource()); schedule.setJobTrigger(JobTrigger.createNowTrigger()); schedule.setSubject(subject); schedule.setOperationName(operation); parameters.setSimpleValue(OperationDefinition.TIMEOUT_PARAM_NAME, Integer.toString(timeout)); schedule.setParameters(parameters); operationManager.scheduleResourceOperation(subject, schedule); }
pluginConfig.put(new PropertySimple("productType", productType.name())); pluginConfig.put(new PropertySimple("supportsPatching", supportsPatching(productType, version))); pluginConfig.setSimpleValue("expectedRuntimeProductName", productType.PRODUCT_NAME);