ComputeService jcloudContext ( Map < String , String > targetProperties ) throws TargetException { validate ( targetProperties ) ; ComputeServiceContext context = ContextBuilder . newBuilder ( targetProperties . get ( PROVIDER_ID ) ) . endpoint ( targetProperties . get ( ENDPOINT ) ) . credentials ( targetProperties . get ( IDENTITY ) , targetProperties . get ( CREDENTIAL ) ) . buildView ( ComputeServiceContext . class ) ; return context . getComputeService ( ) ; }
Creates a JCloud context .