org.jclouds.rest.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-core Show documentation
Show all versions of jclouds-core Show documentation
Core components to access jclouds services
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.rest;
import java.util.Map;
import org.jclouds.crypto.Crypto;
import org.jclouds.date.DateService;
import org.jclouds.domain.Credentials;
import org.jclouds.json.Json;
import org.jclouds.logging.Logger.LoggerFactory;
import org.jclouds.rest.internal.UtilsImpl;
import org.jclouds.xml.XMLParser;
import com.google.common.annotations.Beta;
import com.google.common.eventbus.EventBus;
import com.google.inject.ImplementedBy;
import com.google.inject.Injector;
@ImplementedBy(UtilsImpl.class)
public interface Utils {
/**
* retrieves a list of credentials for resources created within this context, keyed on {@code id}
* of the resource with a namespace prefix (ex. {@code node#}. We are testing this approach for
* resources such as compute nodes, where you could access this externally.
*
* accessing credentials for a node
*
* the key is in the form {@code node#id}.
*
* - if the node id is {@code 8}, then the key will be {@code node#8}
* - if the node id is {@code us-east-1/i-asdfdas}, then the key will be {@code
* node#us-east-1/i-asdfdas}
* - if the node id is {@code http://cloud/instances/1}, then the key will be {@code
* node#http://cloud/instances/1}
*
*/
@Beta
Map credentialStore();
Json json();
HttpClient http();
Crypto crypto();
DateService date();
EventBus eventBus();
LoggerFactory loggerFactory();
@Beta
Injector injector();
XMLParser xml();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy