Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IsOnline (0.07 sec)

  1. cmd/naughty-disk_test.go

    }
    
    func (d *naughtyDisk) String() string {
    	return d.disk.String()
    }
    
    func (d *naughtyDisk) IsOnline() bool {
    	if err := d.calcError(); err != nil {
    		return err == errDiskNotFound
    	}
    	return d.disk.IsOnline()
    }
    
    func (d *naughtyDisk) LastConn() time.Time {
    	return d.disk.LastConn()
    }
    
    func (d *naughtyDisk) IsLocal() bool {
    	return d.disk.IsLocal()
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. internal/logger/target/kafka/kafka.go

    	if len(h.client.Brokers()) > 0 {
    		// Refer https://github.com/IBM/sarama/issues/1341
    		atomic.StoreInt32(&h.status, statusOnline)
    	}
    
    	return nil
    }
    
    // IsOnline returns true if the target is online.
    func (h *Target) IsOnline(_ context.Context) bool {
    	return atomic.LoadInt32(&h.status) == statusOnline
    }
    
    // Send log message 'e' to kafka target.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    func (client *storageRESTClient) String() string {
    	return client.endpoint.String()
    }
    
    // IsOnline - returns whether client failed to connect or not.
    func (client *storageRESTClient) IsOnline() bool {
    	return client.restClient.IsOnline() || client.IsOnlineWS()
    }
    
    // IsOnlineWS - returns whether websocket client failed to connect or not.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. cmd/peer-rest-client.go

    func (client *peerRESTClient) String() string {
    	return client.host.String()
    }
    
    // IsOnline returns true if the peer client is online.
    func (client *peerRESTClient) IsOnline() bool {
    	conn := client.gridConn()
    	if conn == nil {
    		return false
    	}
    	return client.restClient.IsOnline() || conn.State() == grid.StateConnected
    }
    
    // Close - marks the client as closed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. cmd/local-locker.go

    		}
    		lockCopy[k] = append(make([]lockRequesterInfo, 0, len(v)), v...)
    	}
    	return lockCopy
    }
    
    func (l *localLocker) Close() error {
    	return nil
    }
    
    // IsOnline - local locker is always online.
    func (l *localLocker) IsOnline() bool {
    	return true
    }
    
    // IsLocal - local locker returns true.
    func (l *localLocker) IsLocal() bool {
    	return true
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. internal/rest/client.go

    		clnt.lastErrTime = time.Now()
    	}
    
    	if clnt.HealthCheckFn != nil {
    		// make connection pre-emptively.
    		go clnt.HealthCheckFn()
    	}
    	return clnt
    }
    
    // IsOnline returns whether the client is likely to be online.
    func (c *Client) IsOnline() bool {
    	return atomic.LoadInt32(&c.connected) == online
    }
    
    // LastConn returns when the disk was (re-)connected
    func (c *Client) LastConn() time.Time {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. cmd/metacache-set.go

    		// Read metadata associated with the object from a disk.
    		if retries > 0 {
    			for _, disk := range er.getDisks() {
    				if disk == nil {
    					continue
    				}
    				if !disk.IsOnline() {
    					continue
    				}
    				_, err := disk.ReadVersion(ctx, "", minioMetaBucket,
    					o.objectPath(0), "", ReadOptions{})
    				if err != nil {
    					time.Sleep(retryDelay250)
    					retries++
    					continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    func (h *Target) Endpoint() string {
    	return h.config.Endpoint.String()
    }
    
    func (h *Target) String() string {
    	return h.config.Name
    }
    
    // IsOnline returns true if the target is reachable using a cached value
    func (h *Target) IsOnline(ctx context.Context) bool {
    	return h.status.Load() == statusOnline
    }
    
    // Stats returns the target statistics.
    func (h *Target) Stats() types.TargetStats {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    		for _, disk := range onlineDisks {
    			if disk != nil && disk.IsOnline() {
    				continue
    			}
    			er.addPartial(bucket, object, fi.VersionID)
    			break
    		}
    	}
    
    	for i := 0; i < len(onlineDisks); i++ {
    		if onlineDisks[i] != nil && onlineDisks[i].IsOnline() {
    			// Object info is the same in all disks, so we can pick
    			// the first meta from online disk
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  10. cmd/erasure-sets.go

    	defer s.erasureDisksMu.RUnlock()
    
    	for i := 0; i < s.setCount; i++ {
    		for j := 0; j < s.setDriveCount; j++ {
    			disk := s.erasureDisks[i][j]
    			if disk == OfflineDisk {
    				continue
    			}
    			if !disk.IsOnline() {
    				continue
    			}
    			diskMap[disk.Endpoint()] = disk
    		}
    	}
    	return diskMap
    }
    
    // Initializes a new StorageAPI from the endpoint argument, returns
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
Back to top