Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for IsOnline (0.12 sec)

  1. 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)
  2. cmd/erasure-object.go

    // Object Operations
    
    func countOnlineDisks(onlineDisks []StorageAPI) (online int) {
    	for _, onlineDisk := range onlineDisks {
    		if onlineDisk != nil && onlineDisk.IsOnline() {
    			online++
    		}
    	}
    	return online
    }
    
    // CopyObject - copy object source object to destination object.
    // if source object and destination object are same we only
    // update metadata.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K 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. 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)
  6. 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)
  7. 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)
  8. cmd/xl-storage-disk-id-check.go

    	if xl.healthCheck {
    		go xl.monitorDiskWritable(xl.diskCtx)
    	}
    	return &xl
    }
    
    func (p *xlStorageDiskIDCheck) String() string {
    	return p.storage.String()
    }
    
    func (p *xlStorageDiskIDCheck) IsOnline() bool {
    	storedDiskID, err := p.storage.GetDiskID()
    	if err != nil {
    		return false
    	}
    	return storedDiskID == *p.diskID.Load()
    }
    
    func (p *xlStorageDiskIDCheck) LastConn() time.Time {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    		stats = append(stats, madmin.KMS{
    			Status:   string(state),
    			Endpoint: endpoint,
    		})
    	}
    	return stats
    }
    
    func targetStatus(ctx context.Context, h logger.Target) madmin.Status {
    	if h.IsOnline(ctx) {
    		return madmin.Status{Status: string(madmin.ItemOnline)}
    	}
    	return madmin.Status{Status: string(madmin.ItemOffline)}
    }
    
    // fetchLoggerInfo return log info
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    	pools := obj.(*erasureServerPools)
    	t := time.Now()
    	for _, pool := range pools.serverPools {
    		for _, sets := range pool.erasureDisks {
    			for _, s := range sets {
    				if !s.IsLocal() {
    					for {
    						if s.IsOnline() {
    							break
    						}
    						time.Sleep(100 * time.Millisecond)
    						if time.Since(t) > 10*time.Second {
    							return nil, nil, errors.New("timeout waiting for disk to come online")
    						}
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top