Examples of OContextConfiguration


Examples of com.orientechnologies.orient.core.config.OContextConfiguration

  public ODistributedServerNodeRemote(final ODistributedServerManager iNode, final String iServerAddress, final int iServerPort) {
    manager = iNode;
    networkAddress = iServerAddress;
    networkPort = iServerPort;
    joinedOn = new Date();
    configuration = new OContextConfiguration();
    id = networkAddress + ":" + networkPort;
    status = STATUS.CONNECTING;

    asynchExecutor = Executors.newSingleThreadExecutor();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

  protected void loadConfiguration(final OServerConfiguration iConfiguration) {
    try {
      configuration = iConfiguration;

      // FILL THE CONTEXT CONFIGURATION WITH SERVER'S PARAMETERS
      contextConfiguration = new OContextConfiguration();
      if (iConfiguration.properties != null)
        for (OServerEntryConfiguration prop : iConfiguration.properties)
          contextConfiguration.setValue(prop.name, prop.value);

      loadStorages();
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

   private OContextConfiguration           contextConfig;
   private String                          rootPassword;

   public OServerShutdownMain(final String iServerAddress, final String iServerPorts, final String iRootPassword) {
     contextConfig = new OContextConfiguration();

     try {
       if (iRootPassword == null) {
         // LOAD SERVER ROOT'S PASSWORD
         loadConfiguration();
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

    * configuration.
    *
    * @param iServerConfig
    */
   private void readParameters(final OContextConfiguration iServerConfig, final OServerParameterConfiguration[] iParameters) {
     configuration = new OContextConfiguration(iServerConfig);

     // SET PARAMETERS
     if (iParameters != null && iParameters.length > 0) {
       // CONVERT PARAMETERS IN MAP TO INTIALIZE THE CONTEXT-CONFIGURATION
       for (OServerParameterConfiguration param : iParameters)
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

  protected void loadConfiguration(final OServerConfiguration iConfiguration) {
    configuration = iConfiguration;

    // FILL THE CONTEXT CONFIGURATION WITH SERVER'S PARAMETERS
    contextConfiguration = new OContextConfiguration();
    if (iConfiguration.properties != null)
      for (OServerEntryConfiguration prop : iConfiguration.properties)
        contextConfiguration.setValue(prop.name, prop.value);

    hookManager = new OConfigurableHooksManager(iConfiguration);
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

  public void configure(OStorage storage, int id, String clusterName, Object... parameters) throws IOException {
    externalModificationLock.requestModificationLock();
    try {
      acquireExclusiveLock();
      try {
        final OContextConfiguration ctxCfg = storage.getConfiguration().getContextConfiguration();
        final String cfgCompression = ctxCfg.getValueAsString(OGlobalConfiguration.STORAGE_COMPRESSION_METHOD);

        config = new OStoragePaginatedClusterConfiguration(storage.getConfiguration(), id, clusterName, null, true, OStoragePaginatedClusterConfiguration.DEFAULT_GROW_FACTOR, OStoragePaginatedClusterConfiguration.DEFAULT_GROW_FACTOR, cfgCompression, null);
        config.name = clusterName;

        init((OAbstractPaginatedStorage) storage, config);
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

      if (storage == null)
        storage = Orient.instance().loadStorage(url);

      if (iInitialSettings != null) {
        // SETUP INITIAL SETTINGS
        final OContextConfiguration ctxCfg = storage.getConfiguration().getContextConfiguration();
        for (Map.Entry<OGlobalConfiguration, Object> e : iInitialSettings.entrySet()) {
          ctxCfg.setValue(e.getKey(), e.getValue());
        }
      }

      storage.create(properties);
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OContextConfiguration

      this.status = status;

    clientId = iClientId;
    configuration = null;

    clientConfiguration = new OContextConfiguration();
    connectionRetry = clientConfiguration.getValueAsInteger(OGlobalConfiguration.NETWORK_SOCKET_RETRY);
    connectionRetryDelay = clientConfiguration.getValueAsInteger(OGlobalConfiguration.NETWORK_SOCKET_RETRY_DELAY);
    asynchEventListener = new OStorageRemoteAsynchEventListener(this);
    parseServerURLs();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.