Class OracleFastConnectAdapter<T>
java.lang.Object
com.eqixiac.equinix.fabric.model.implementation.cloud.OracleFastConnectAdapter<T>
- Type Parameters:
T- the type of the Oracle Cloud SDK object being adapted
- All Implemented Interfaces:
CloudProviderConnectionAdapter<T>
public class OracleFastConnectAdapter<T>
extends Object
implements CloudProviderConnectionAdapter<T>
Adapter for bridging Oracle Cloud Infrastructure FastConnect SDK objects with Equinix Fabric connections.
Oracle FastConnect provides dedicated, private connections between Oracle Cloud Infrastructure (OCI) and on-premises networks. When creating an Equinix Fabric connection to Oracle Cloud, you need:
- Authentication Key: The Oracle OCID of the virtual circuit
(e.g.,
"ocid1.virtualcircuit.oc1...") - Seller Region: The OCI region (e.g.,
"us-ashburn-1","uk-london-1") - Service Profile: The Equinix Fabric service profile UUID for Oracle FastConnect
Usage with Oracle Cloud SDK Object
// From OCI SDK
VirtualCircuit vc = virtualNetworkClient.getVirtualCircuit(
GetVirtualCircuitRequest.builder().virtualCircuitId(vcOcid).build()
).getVirtualCircuit();
OracleFastConnectAdapter<VirtualCircuit> adapter = new OracleFastConnectAdapter<>(
vc,
vc.getId(), // OCID of the virtual circuit
vc.getRegion(), // e.g., "us-ashburn-1"
"equinix-oracle-profile-uuid", // Equinix service profile for Oracle
"SV" // Equinix metro of the provider port
);
Connection conn = fabric.connections()
.define(ConnectionType.EVPL_VC)
.name("Oracle-FastConnect")
.bandwidth(100)
.aSideAccessPointPort(portUuid, LinkProtocol.dot1q().vlanTag(3000).create())
.zSideCloudProvider(adapter)
.notification("ops@example.com")
.create();
Manual Construction (No OCI SDK)
OracleFastConnectAdapter<?> adapter = OracleFastConnectAdapter.of(
"ocid1.virtualcircuit.oc1...", // Virtual circuit OCID
"us-ashburn-1", // Region
"equinix-oracle-profile-uuid", // Equinix service profile
"SV" // Equinix metro of the provider port
);
- Author:
- ianjones
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred connection type for this cloud provider.Returns the cloud provider type for this adapter.static OracleFastConnectAdapter<Void> Creates an adapter without an OCI SDK object, using manually specified parameters.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloudProviderConnectionAdapter
describe, getActivationKey, getAuthenticationKey, getMetroCode, getPreferredLinkProtocol, getPreferredPeeringType, getSellerRegion, getServiceProfileUuid, getSourceModifier and TypeMethodDescriptiondefault Stringdescribe()Returns a human-readable description of the cloud provider connection for use in logging and diagnostics.default StringReturns the activation key to send asAccessPoint.activationKey, ornullto omit that property.Returns the authentication key required by the cloud provider to authorize the connection.default StringReturns the metro code to send asAccessPoint.location.metroCodeon the provider side.default LinkProtocolReturns the preferred link protocol for this cloud provider connection.default PeeringTypeReturns the preferred peering type for this cloud provider connection.Returns the cloud provider's region where the connection will terminate.Returns the Equinix Fabric service profile UUID for this cloud provider.Returns the underlying cloud provider SDK object that was adapted.
-
Constructor Details
-
OracleFastConnectAdapter
public OracleFastConnectAdapter(T source, String virtualCircuitOcid, String ociRegion, String serviceProfileUuid, String metroCode) Creates an adapter wrapping an Oracle Cloud FastConnect SDK object.- Parameters:
source- the OCI SDK object (e.g.,VirtualCircuit)virtualCircuitOcid- the OCID of the Oracle virtual circuitociRegion- the OCI region (e.g.,"us-ashburn-1")serviceProfileUuid- the Equinix Fabric service profile UUID for Oracle FastConnectmetroCode- the Equinix metro the provider is reached in, e.g."SV"; required, sent aszSide.accessPoint.location.metroCode
-
-
Method Details
-
of
public static OracleFastConnectAdapter<Void> of(String virtualCircuitOcid, String ociRegion, String serviceProfileUuid, String metroCode) Creates an adapter without an OCI SDK object, using manually specified parameters.- Parameters:
virtualCircuitOcid- the OCID of the Oracle virtual circuitociRegion- the OCI regionserviceProfileUuid- the Equinix Fabric service profile UUID for Oracle FastConnectmetroCode- the Equinix metro the provider is reached in, e.g."SV"; required, sent aszSide.accessPoint.location.metroCode- Returns:
- a new adapter configured for Oracle FastConnect
-
getProviderType
Description copied from interface:CloudProviderConnectionAdapterReturns the cloud provider type for this adapter.Used for logging, diagnostics, and provider-specific defaults. Implementations should return the appropriate
CloudProviderTypeconstant.- Specified by:
getProviderTypein interfaceCloudProviderConnectionAdapter<T>- Returns:
- the cloud provider type
-
getPreferredConnectionType
Description copied from interface:CloudProviderConnectionAdapterReturns the preferred connection type for this cloud provider.Most cloud provider connections use
ConnectionType.EVPL_VC, but implementations can override this to return a different default. The user can always override the connection type when calling the builder.- Specified by:
getPreferredConnectionTypein interfaceCloudProviderConnectionAdapter<T>- Returns:
- the preferred connection type; defaults to
ConnectionType.EVPL_VC
-