Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 511 for intializer (0.07 sec)

  1. cmd/lock-rest-server-common_test.go

    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	locker := &lockRESTServer{
    		ll: &localLocker{
    			mutex:   sync.Mutex{},
    			lockMap: make(map[string][]lockRequesterInfo),
    		},
    	}
    	creds := globalActiveCred
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. internal/lock/lock.go

    	r.mutex.Lock()
    	defer r.mutex.Unlock()
    
    	if r.refs == 0 {
    		return os.ErrInvalid
    	}
    
    	r.refs--
    	if r.refs == 0 {
    		err = r.File.Close()
    	}
    
    	return err
    }
    
    // Provides a new initialized read locked struct from *os.File
    func newRLockedFile(lkFile *LockedFile) (*RLockedFile, error) {
    	if lkFile == nil {
    		return nil, os.ErrInvalid
    	}
    
    	return &RLockedFile{
    		LockedFile: lkFile,
    		refs:       1,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. internal/config/lambda/target/lazyinit.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package target
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    type lazyInit struct {
    	done uint32
    	m    sync.Mutex
    }
    
    func (l *lazyInit) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.doSlow(f)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/webauth/CreateForm.java

        @Required
        @Size(max = 1000)
        public String webConfigId;
    
        @Size(max = 1000)
        public String createdBy;
    
        @ValidateTypeFailure
        public Long createdTime;
    
        public void initialize() {
            crudMode = CrudMode.CREATE;
            createdBy = ComponentUtil.getSystemHelper().getUsername();
            createdTime = ComponentUtil.getSystemHelper().getCurrentTimeAsLong();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/fileauth/CreateForm.java

        @Required
        @Size(max = 1000)
        public String fileConfigId;
    
        @Size(max = 1000)
        public String createdBy;
    
        @ValidateTypeFailure
        public Long createdTime;
    
        public void initialize() {
            crudMode = CrudMode.CREATE;
            createdBy = ComponentUtil.getSystemHelper().getUsername();
            createdTime = ComponentUtil.getSystemHelper().getCurrentTimeAsLong();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/keymatch/CreateForm.java

        public Float boost;
    
        @Size(max = 1000)
        public String virtualHost;
    
        @Size(max = 255)
        public String createdBy;
    
        @ValidateTypeFailure
        public Long createdTime;
    
        public void initialize() {
            crudMode = CrudMode.CREATE;
            maxSize = 10;
            boost = 100.0f;
            createdBy = ComponentUtil.getSystemHelper().getUsername();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. docs/sts/custom-token-identity.go

    	// AssumeRoleWithCustomToken STS API.
    
    	var opts []cr.CustomTokenOpt
    	if expiryDuration != 0 {
    		opts = append(opts, cr.CustomTokenValidityOpt(expiryDuration))
    	}
    
    	// Initialize
    	li, err := cr.NewCustomTokenCredentials(stsEndpoint, token, roleArn, opts...)
    	if err != nil {
    		log.Fatalf("Error initializing CustomToken Identity: %v", err)
    	}
    
    	v, err := li.Get()
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 27 00:58:09 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/webconfig/CreateForm.java

        @ValidateTypeFailure
        public Integer sortOrder;
    
        @Size(max = 1000)
        public String createdBy;
    
        @ValidateTypeFailure
        public Long createdTime;
    
        public void initialize() {
            crudMode = CrudMode.CREATE;
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            includedUrls = fessConfig.getCrawlerDocumentHtmlDefaultIncludeIndexPatterns();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. cmd/format-erasure.go

    // loadFormatErasureAll - load all format config from all input disks in parallel.
    func loadFormatErasureAll(storageDisks []StorageAPI, heal bool) ([]*formatErasureV3, []error) {
    	// Initialize list of errors.
    	g := errgroup.WithNErrs(len(storageDisks))
    
    	// Initialize format configs.
    	formats := make([]*formatErasureV3, len(storageDisks))
    
    	// Load format from each disk in parallel
    	for index := range storageDisks {
    		index := index
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        protected long searchStoreInterval = 1; // min
    
        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            fessConfig = ComponentUtil.getFessConfig();
            split(fessConfig.getSuggestFieldContents(), ",")
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top